提交 d89010e4 编写于 作者: U unknown

ftsearch

上级 afd4edda
......@@ -33,7 +33,7 @@
//"float": "left",
"border": "1px solid #fff",
"background-color": "#fff",
"height": "30px",
"min-height": "30px",
"margin-right": "8px",
"padding-left": "2px",
"padding-right": "2px",
......@@ -57,12 +57,18 @@
},
"buttonTextDiv": {
"display":"block",
"float": "left",
"height": "30px",
// "float": "left",
// "height": "30px",
"padding-left": "2px",
"padding-right": "2px",
"line-height": "30px",
"cursor": "pointer"
// "line-height": "30px",
"cursor": "pointer",
"min-height": "20px",
"margin-left": "22px",
"line-height": "20px",
"padding-top": "5px",
"padding-bottom": "5px",
"word-break": "break-all"
},
"buttonDisable": {
......
......@@ -42,6 +42,12 @@ MWF.xApplication.process.Xform.Sidebar = MWF.APPSidebar = new Class(
},
_loadUserInterface: function(){
this.node.setStyles(this.form.css.sidebar);
this.node.setStyles({
"min-width":"126px",
"max-width":"240px",
"width": "auto"
});
// this.node.setStyle("width", this.node.getSize().x+"px");
this.toolbarNode = this.node.getFirst("div");
this.toolbarNode.empty();
......@@ -222,11 +228,17 @@ MWF.xApplication.process.Xform.Sidebar = MWF.APPSidebar = new Class(
}
var left = sideSize.x+sidePosition.x+5;
//var left = sideSize.x+sidePosition.x+5;
var x = sidePosition.x+sideSize.x+nodeSize.x;
var left;
if( x > size.x ){
left = size.x - nodeSize.x - 5;
}else{
left = sideSize.x+sidePosition.x+5;
}
this.node.setStyle("left", ""+left+"px");
this.node.setStyle("position", "absolute");
this.node.setStyles({"right": "auto", "bottom": "auto"});
// this.json.styles = this.node.getStyles(["top", "left", "bottom", "right", "position"]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册