Hi list,

I'm trying to build a custom widget which extends qx.ui.groupbox.GroupBox.
The widget should display a row of buttons, whose number changes depending
on a list obtained from the server. 
In order to do so, I added a qx.ui.container.Scroll to the widget, and to it
added a qx.ui.container.Composite with a Horizontal layout to accommodate
the buttons. Now, the problem is that I would like the horizontal scrollbar
to appear when the width of the content is larger than the width of the
groupbox, but I didn't find a way yet to set the width of the Scroll to be
equal to the size of the widget (or a little smaller than it). If I try
something like Scroll.setWidth(this.getWidth()), I get null instead of the
width of the widget. If I try to bind the width of the custom widget to that
of the scroll I get an assertion error because the width of the widget is
undefined. 

What would be the "canonical" way to set and handle the widths of a custom
widget with child widgets? 
I would like to have the custom widget fit into the window in which it is
added to, and to have its children's widths behave accordingly.

Thanks,
Omri

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Need-help-with-custom-widget-which-allows-scrolling-if-data-is-too-wide-tp7405389p7405389.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to