Explorar o código

蓝白扁平样式修改

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
087b36a2a1
Modificáronse 1 ficheiros con 9 adicións e 2 borrados
  1. 9 2
      o2web/source/x_component_Selector/MultipleSelector.js

+ 9 - 2
o2web/source/x_component_Selector/MultipleSelector.js

@@ -40,6 +40,7 @@ MWF.xApplication.Selector.MultipleSelector = new Class({
         this.selectors = {};
     },
     load: function(){
+        debugger;
         if( this.options.contentUrl ){
             this.loadWithUrl()
         }else {
@@ -480,6 +481,8 @@ MWF.xApplication.Selector.MultipleSelector = new Class({
 
             var tab = this.tab.addTab( pageNode, this.lp[type], false );
 
+            debugger;
+
             if( index === 0 && this.contentHeight && !this.tabContainer ){
                 //this.contentHeight = this.contentHeight - this.getOffsetY( tab.tabContainer ) - tab.tabContainer.getStyle("height").toInt();
                 this.contentHeight = this.contentHeight - this.getOffsetY( tab.tab.tabNodeContainer ) - tab.tab.tabNodeContainer.getStyle("height").toInt();
@@ -570,8 +573,12 @@ MWF.xApplication.Selector.MultipleSelector = new Class({
                         })
                     }
                 }else{
-                    if( this.contentWidth )options.width = this.contentWidth;
-                    if( this.contentHeight )options.height = this.contentHeight;
+                    // if( this.contentWidth )options.width = this.contentWidth;
+                    // if( this.contentHeight )options.height = this.contentHeight;
+
+                    if( this.contentWidth )this.selectors[t].options.width = this.contentWidth;
+                    if( this.contentHeight )this.selectors[t].options.height = this.contentHeight;
+
                     this.selectors[t].loadContent( pageNode );
                     this.selectors[t].setSize();