Hej Til! > Kent Olsson schrieb: > > It is not always > > > > getHeight > > getWidth > > > > return the absolute value. Instead, very often QxConst.CORE_AUTO is > > returned. Why doesn't these functions calculate the absolute value and > > then return it instead? It is difficult to do maths on constants not > > resolving in the expression or every time call a separate function to > > calculate it when these getters are used. Is this really what is > > intended behaviour? > > getHeight and getWidth return the values given by the application > programmer. The width and height specified here are the size the widget > should have.
I know this, but I wanted to put light on it. > If you want the current width and height of a widget, use getBoxWidth > and getBoxHeight instead. I know this too. > The real width depends on the layout and the size the parent widget has. > Which means: if you resize the parent width, the real width changes, but > the width specified by setWidth stays the same. I know this too. Your explanation was a good one. The question is still unanswered: "...intended behaviour?". Then probably answered with a yes. I think Hugh or you or someone else could put it in the documentation. This is actually not straightforward, that is why I think it is useful to document for newcomers. Kent > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
