Skip to content

Commit

Permalink
修复设计器国际化以及滚动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
youseries committed Jan 25, 2018
1 parent 5f0ff06 commit 75cd67b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ureport2-js/src/designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class UReportDesigner{
}

buildTools(context){
const toolbar=$(`<div class="btn-group ud-toolbar"></div>`);
const toolbar=$(`<div class="btn-group ud-toolbar top-toolbar"></div>`);
this.container.prepend(toolbar);
this.tools=[];
this.tools.push(new PreviewTool(context));
Expand Down
2 changes: 1 addition & 1 deletion ureport2-js/src/i18n/designer.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
"undo":{
"noUndo":"当前没有内容可以撤消!",
"redo":"撤消"
"undo":"撤消"
},
"save":{
"save":"保存",
Expand Down
2 changes: 1 addition & 1 deletion ureport2-js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(document).ready(function(){
let prevTop=0;
$(window).scroll(function(){
const top=$(window).scrollTop();
const toolbar=$('.ud-toolbar');
const toolbar=$('.top-toolbar');
if(top>0){
toolbar.css({
"position":"absolute",
Expand Down

0 comments on commit 75cd67b

Please sign in to comment.