Hi Viorel, >> Hi all, >> >> I'll start by describing my problem. I had finished a qooxdoo page which >> has several elements. >> In a TabView(qx.ui.pageview.tabview.TabView), I put some elements like >> Tables, TextAreas, Buttons and Lables. >> All components are now arranged on page by using GridLayout with fixed >> size for cells. >> The problem is that the client has requested two new requirements: >> 1. When the Font size changes, just by reloading the page all the >> elements should resize accordingly to the new font. >> 2. When the window resizes, on the fly elements should resize. >> A solution was to use GridLayout with percents(%), but at a certain point >> I get a “too much recursion” error. >> >> I succeeded to adjust the elements size by finding the font size and >> then manually set the width and height to each. >> I don't know how exactly to do that, when resizing the window. I >> thought that just by using percents it will work, but it seems not. >> >> I want to know a “best way to do it” or some hints for this problem and if >> GridLayout substitution with BoxLayout , could be used to arrange >> elements in a desired order, or any other information that can help me >> with this problem. >> >> I have the feeling that with BoxLayout it will be more difficult when >> arranging elements. Am I right? >> >> >>
As you experienced, the grid in qooxdoo 0.7 does only work well in simple scenarios. If you use percent sizes or put complex layouts inside of a grid cell you can get this infinite recursion error. This bug is known but could not be fixed with the old layout system :-( Using nested box layouts is definitively more stable. You only have to find a way to make sure that all columns have the same width. Best Fabian >> Thanks in advance! >> Viorel. >> >> >> > > -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG Brauerstraße 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
