First always check these things:

* Is the complete widget structure inside the document(was not the case)
* Are there any error messages on the debug console (it's bad to start developing without)

I have attached a fix example. Some small notes:

* Don't define a height for an element which sits on the left or right of a docklayout (like the tree) - you must even reset the auto height here (setHeight(null))

Hope this helps.

Sebastian


Kent Olsson schrieb:
Here is an example...

        var doc = this.getClientWindow().getClientDocument();

        var mainF = new QxWindow("Testing...");
        mainF.setSpace(20, 400, 48, 250);
        doc.add(mainF);

        var mainDL = new QxDockLayout;

        mainDL.setTop(0);
        mainDL.setLeft(0);
        mainDL.setRight(0);
        mainDL.setBottom(0);

        mainDL.setBorder(2, "outset");
        mainDL.setBackgroundColor("white");


  var mainT = new QxTree("Name");

  with(mainT)
  {
    setBackgroundColor(255);
    setBorder(QxBorderObject.presets.inset);
    setOverflow("scrollY");

    setHeight(200);
    setTop(48);
    setLeft(20);
    setWidth(200);
    setBottom(48);
  };

  var sentTF  = new QxTreeFolder("Sent");
  var trashTF = new QxTreeFolder("Trash");

 mainT.add(sentTF, trashTF);

        mainDL.addLeft(mainT);


I do not get it working. The tree disappears...
Anyone who can help?

Kent

On Tue, 2005-11-22 at 00:44 +0100, Kent Olsson wrote:
I do not know if I am doing it correct or not, but when I try to add a
tree to a dock layout, it first appears without any icons. Then it
shrinks and disappears if I move the cursor above the area.

Kent



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Title: qooxdoo demo dev
Simple Test for QxDockLayout.

Reply via email to