js/controls/tab/tab.js in rsence-2.0.0.10.pre vs js/controls/tab/tab.js in rsence-2.0.0.11

- old
+ new

@@ -9,10 +9,11 @@ /*** = Description ** HTabView ** ** ***/ +var//RSence.Controls HTabView = HView.extend({ /** = Description * draw function * **/ @@ -33,13 +34,13 @@ /** = Description * HTab * **/ +var//RSence.Controls HTab = HControl.extend({ componentName: "tab", - componentBehaviour: ['view','control','tab'], refreshOnValueChange: true, refreshOnLabelChange: false, controlDefaults: (HControlDefaults.extend({ constructor: function(_ctrl){ @@ -140,15 +141,15 @@ * = Parameters * +_tabLabel+:: * +_doSelect+:: * **/ - addTab: function(_tabLabel,_doSelect){ + addTab: function(_tabLabel,_doSelect,_viewClass){ var _tabIdx=this.tabs.length, - _tabLabelHTML='', - _labelTextWidth=this.stringWidth(_tabLabel), - _labelWidth=_labelTextWidth+this.tabLabelLeftEdge+this.tabLabelRightEdge, + _tabLabelHTML = '', + _labelTextWidth = this.stringWidth( _tabLabel, null, 0, this.fontStyle ), + _labelWidth = _labelTextWidth+this.tabLabelLeftEdge+this.tabLabelRightEdge, _tab = HTabView.nu( [0,this.tabLabelHeight,null,null,0,0] ,this), _tabLabelElemId = ELEM.make(this.markupElemIds[this.tabLabelParentElem],this.tabLabelElementTagName); _tabIdx = this.tabs.length; if(this.tabLabelNoHTMLPrefix){ _tabLabelHTML = _tabLabel; @@ -265,9 +266,10 @@ * * = Returns * a new HTabView instance returned by addTab * **/ +var//RSence.Controls HTabItem = { nu: function(_rect, _parent, _options){ return _parent.addTab( _options.label, _options.select ); } };