Hi Christopher,
great ! Thanks a lot. So I wasn´t too wrong with my approach.

Cheers,
Rob.



Von: Christopher Zündorf [mailto:[email protected]]
Gesendet: Mittwoch, 26. September 2012 13:25
An: Robert Nimax; qooxdoo Development
Betreff: Re: [qooxdoo-devel] Split Pane define height of upper element at 
runtime

There was a mistake in my explaination:

The second parameter indicates the flex, not the pane index.
add(Widget<http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget> 
widget, 
Number<https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number>
 flex)
But the solution is the same: just change the first flex number to "0", and it 
works.
It indicates that widget size shrinks to fit its content, and not fill any 
available space.

Greetz
Christopher



Am 26.09.2012 um 13:18 schrieb Christopher Zündorf:


Hi Robert,

in your example, there was a little fault on adding your widgets to the split 
panes.

This caused the effect, that setHeight did not work.

You did add both widgets in the same part of the split pane. So the split pane 
could not work properly.


Have a look at:
http://tinyurl.com/92vzb3r

Important is the code:

sp.add(elUpper,0);
sp.add(elLower, 1);

You have to add the widgets in separate panes, indicated by the "0" and "1" and 
the end of the "add" method.

Then you can use setHeight() and it works.


Greetz Christopher



Am 26.09.2012 um 11:09 schrieb Robert Nimax:


Hi all,
I´m looking for a way to change the height of the upper element of a split pane 
having a vertical orientation.
I took a look at __onSplitterMove and __setBlockerPosition of 
qx.ui.splitpane.Pane...but I don´t get it working.
The only thing I could do is to set max height of the element:

http://tinyurl.com/c3v8e4t

But...is this the right way ?


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to