Hi,

I have searched the code for "getHeightForWidth". There are two places were it 
is used (LayoutItem and Widget):

 if (layout && layout.hasHeightForWidth()) {
        var contentHeight =  layout.getHeightForWidth(width);

So the method is only called when the layout returns "true" for 
"hasHeightForWidth".

The only layout that implements that is the Flow layout.

Hope that helps you!

Tino

Am 20.05.2011 um 15:55 schrieb dabd:

I extended a Grid layout and implemented the getHeightForWidth method but
when I instantiate the new layout this method is not being called.

How can I ensure it is being called?

Thanks.

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/when-is-getHeightForWidth-called-tp6386125p6386125.html
Sent from the qooxdoo mailing list archive at Nabble.com<http://Nabble.com>.

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to