Hello,

I tried to modify the MultiPage example from demobrowser.
I want to use a Canvas layout instead of Grid.

http://tinyurl.com/29ru6kx

If I build the source then I have the error;
target["set" + qx.lang.String.firstUp(lastProperty)] is not a function

and the color widgets are not correct placed

any idea?
regrads
Hansjoerg
---------------------------------------
      var stack = new qx.ui.container.Stack();
      this.getRoot().add(stack, {left: 10, top: 30});
          
   
          // page 1
      //var grid1 = new qx.ui.layout.Grid();
      //grid1.setSpacing(5);
      // var page1 = new qx.ui.container.Composite(grid1);
      //stack.add(page1);

          
   var border = new qx.ui.decoration.Single(3, "solid", "black");

      var w1 = new qx.ui.core.Widget().set({
        backgroundColor: "red",
        decorator: border
      });

      var w2 = new qx.ui.core.Widget().set({
        backgroundColor: "blue",
        decorator: border
      });

      var w3 = new qx.ui.core.Widget().set({
        backgroundColor: "green",
        decorator: border
      });

      var w4 = new qx.ui.core.Widget().set({
        backgroundColor: "yellow",
        decorator: border
      });

      var w5 = new qx.ui.core.Widget().set({
        backgroundColor: "orange",
        decorator: border
      });

      var w6 = new qx.ui.core.Widget().set({
        backgroundColor: "teal",
        decorator: border
      });

      var container = new qx.ui.container.Composite(new
qx.ui.layout.Canvas());
      container.setPadding(10);

      container.add(w1, {left:10, top:10, right:10, bottom:10});
      container.add(w2, {left:30, top:30, right:30});
      container.add(w3, {left:50, top:50, bottom:50});
      container.add(w4, {left:70, top:70});
      container.add(w5, {top:50, right:50});
      container.add(w6, {right:50, bottom:50});
      stack.add(container, {edge:0});

---------------------------------------
-- 
View this message in context: 
http://old.nabble.com/Canvas-instead-of-Grid-makes-problem-tp29761405p29761405.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to