On Wed, 16 Jun 2010, Fritz Zaucker wrote:

> On Wed, 16 Jun 2010, Derrell Lipman wrote:
>
>> On Wed, Jun 16, 2010 at 15:50, Fritz Zaucker <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> is it possible to insert a tabview.Page into a tabview at a certain
>>> position
>>> (instead of adding it to the end)?
>>>
>>
>> Try adding it normally, followed by this code, which should move it to the
>> new position:
>>
>> tabView.getChildControl("pane").addAt(page.getButton(), newPosition);

Reading more source:

   
tabView.getChildControl("bar").getChildControl("content")._addAt(page.getButton(),
 newPosition);

does put the button in the right position. There is a small (some pixels)
additional space added between the buttons, though. So if somebody knows
what I am still missing, I'd be grateful.

Cheers,
Fritz

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to