Aaron Cooper schrieb:
> Hi there,
>
> I've got a popup dialog that contains a rather large form for filling in
> passenger details for cruises. It currently holds 50 sets of names, in two
> columns (splitpane)
>
> I've been asked to extend this to 75 sets, however this simply does not
> render them on screen at 1024 x 768. So what I want to do is allow to have a
> vertical scrollbar on the dialog for scrolling down. I can't find any
> examples of this on the forum, although I did find the
> setOverflow('scrollY');. This displays the scrollbar, but the contents of
> the dialog do not scroll with it unfortunately.
>
> Here is the main snippet of code:
>
> // Make the popup window first
> var d = qx.ui.core.ClientDocument.getInstance();
> var myWindow = new qx.ui.window.Window(" Passenger List",
> "icon/16/applications.png");
> var passenger_field_array = [];
>
> // Create the Main Window
> myWindow.setSpace("auto", 850, "auto", 700);
> myWindow.setCentered(true)
> myWindow.setModal(true);
> myWindow.setShowClose(true);
> myWindow.setShowMaximize(true);
> myWindow.setShowMinimize(false);
>
> // Setup the page for data entry
>
> // A splitpane. Labels on the left, fields on the right
> var splitpane = new qx.ui.splitpane.HorizontalSplitPane(425, "5*");
> splitpane.setEdge(0);
>
> ........
>
>
> Any thoughts on what I should be doing here please?
>
> Cheers
> Aaron
>
The problem is this line:
splitpane.setEdge(0);
This makes the splitpane always the size of its parent so there will
never be any scrollbars on the window necessary. If you put your fields
into an autosized widget and set its overflowY property to true this
should work. The widget is propably the widget you add to the splitpane.
Best Fabian
--
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