Hi Martin,

I have created an example for my situation (code snippet was attached
to this mail ), when you run this code it will create a screen with
two part including : Tree virtual on the left and sample text on the
right. Follow this path on the tree virtual:
Desktop\Workspace\Windows, the horizontal scroll bar of tree virtual
does not appear although there is not enough space to show the full
text of  Windows node label.

Please let me know if you need more information, thanks so much for
your supporting.

Thanks
Khoa Tran

2012/10/29 Martin Wittemann <martin.wittem...@1und1.de>:
> He,
>
> I have implemented the qx.ui.treevirtual.TreeVirtual  for my application and
> it seemed to be a bug with horizontal scrollbar. it has not appeared
> automatically until i dragged the upper right corner. There is a bug in
> qooxdoo, isn't it ?
>
> I can't tell from such a short description if its really a issue within the
> framework code or not. Could you supply more details or even better, a short
> sample which runs in the playground [1] demonstrating the issue?
>
> Is there any way to fix this issue ?
>
> Well, hard to tell not knowing whats wrong. ;)
>
> Regards,
> Martin
>
> [1] http://demo.qooxdoo.org/devel/playground/
>
>
> ------------------------------------------------------------------------------
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
    // Create a scroll container and an outer container
      var scroller = new qx.ui.container.Scroll();
      var outerContainer = new qx.ui.container.Composite(new 
qx.ui.layout.Basic());
      outerContainer.setAllowStretchX(false);
      scroller.add(outerContainer);

      // Create a horizontal split pane
      var pane = new qx.ui.splitpane.Pane("horizontal").set({
        width : 450,
        height : 300
      });

      this.__pane = pane;

      // Create container with fixed dimensions for the left:
      var container1 = new qx.ui.container.Composite(new 
qx.ui.layout.Grow).set({
        width : 200,
        height: 100,
        decorator : "main"
      });

      // Create container for the right:
      var container2 = new qx.ui.container.Composite(new 
qx.ui.layout.VBox(10)).set({
        padding : 10,
        maxWidth : 450,
        decorator : "main"
      });
      
      var tree = new qx.ui.treevirtual.TreeVirtual("Tree");
      tree.set({
              width  : 400,
              rowHeight: 22
            });
      tree.setColumnWidth(0, 400);
      tree.setAlwaysShowOpenCloseSymbol(true);
      
        // tree data model
      var dataModel = tree.getDataModel();

      var te1 = dataModel.addBranch(null, "Desktop", true);

      var te;

      dataModel.addBranch(te1, "Files", true);

      te = dataModel.addBranch(te1, "Workspace", true);
      dataModel.addLeaf(te, "Windows (C:/Program Files/Qooxdoo/Test Tree 
Virtual)");
      dataModel.addLeaf(te, "Documents (D:)");

      dataModel.addBranch(te1, "Network", true);

      te = dataModel.addBranch(te1, "Trash", true);

      var te2 = dataModel.addBranch(
        null, "Inbox", true, false, "icon/22/apps/internet-mail.png"
      );

      te = dataModel.addBranch(te2, "Spam", false);

      for (var i = 1; i < 3000; i++)
      {
        dataModel.addLeaf(te, "Spam Message #" + i);
      }

      dataModel.addBranch(te2, "Sent", true);
      dataModel.addBranch(te2, "Trash", true);
      dataModel.addBranch(te2, "Data", true);
      dataModel.addBranch(te2, "Edit", true);

      dataModel.setData();
     
      
       var button = new qx.ui.form.Button("Toggle Splitpane Orientation").set({
        allowGrowX : false,
        allowGrowY : false
      });

      // Add a listener to the button
      button.addListener("execute", function(e){
        var orientation = this.__pane.getOrientation();
        this.__pane.setOrientation(orientation == "horizontal" ? "vertical" : 
"horizontal");
      }, this);
      var label = new qx.ui.basic.Label("Lorem ipsum dolor sit amet, 
consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et 
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco 
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in 
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia 
deserunt mollit anim id est laborum.");
      label.setRich(true);

      // ... and add it to the containers
      container1.add(tree);
      container2.add(button);
      container2.add(label);

      this._container1 = container1;
      this._container2 = container2;

      // Add the first container to the pane. Flex = 0 means that this child 
should not grow
      pane.add(container1, 0);

      // Add the second container. Flex = 1 means that this child should 
consume all available space.
      pane.add(container2, 1);

      // Add the pane to the outer container.
      outerContainer.add(pane, {left:20, top:40});

      // Finally add the scroll container to the root widget.
      this.getRoot().add(scroller, {edge : 0});
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to