posts - 431,  comments - 344,  trackbacks - 0
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);
   }
}
posted on 2007-04-06 16:35 周锐 阅读(246) 评论(0)  编辑  收藏 所属分类: TIBCO

只有注册用户登录后才能发表评论。


网站导航: