使用jsx3.gui.Splitter对象的setSubcontainer1Pct()方法

使用jsx3.gui.Splitter对象的setSubcontainer1Pct()方法
jsx3.gui.Splitter
setSubcontainer1Pct()
method setSubcontainer1Pct( strSubcontainerPct, bView)
Sets a valid percentage (e.g., 100.00% 23.567%) that will be applied to the on-screen element as its CSS width/height percentage
Parameters:
strSubcontainerPct {String}valid CSS width property as a percentage (e.g., 34.56%)
bView {boolean}false if null; if true the view is updated automatically without a repaint
Returns:
{jsx3.gui.Splitter}– this object


eg:
service.menuMinimize = function(menuToggle,isSelf) {
   if (isSelf != null) {
      if (isSelf == 0) {
         menuToggle.setState(menuToggle.getState() == 0 ? 1 : 0);
      }
   }
   var menuSplitter = csa.getServer().getJSXByName('splitter_menuright');
   if (!menuToggle.getState()){
      menuSplitter.setSubcontainer1Pct("95.86",true);
   } else {
      menuSplitter.setSubcontainer1Pct("67.70",true);
   }
}

你可能感兴趣的:(使用jsx3.gui.Splitter对象的setSubcontainer1Pct()方法)