hi,

i have a problem with dynamically adding button's on a navigation page.

To reprodruce my problem, you can create a new skeleton mobile 
application and add the following code
(The problem doesn't occur in the playground):

var page = new qx.ui.mobile.page.NavigationPage();
page.setTitle("Hello World");

var secondPage = new qx.ui.mobile.page.NavigationPage();
secondPage.setTitle("2. Page");

secondPage.addListener("initialize", function() {
   var addButton = new qx.ui.mobile.form.Button("Add New Button");
   this.getContent().add(addButton);

   addButton.addListener("tap", function() {
     this.getContent().add(new qx.ui.mobile.form.Button("Second Button"));
   }, secondPage);

}, secondPage);



page.addListener("initialize", function() {
   var button = new qx.ui.mobile.form.Button("First Button");
   page.getContent().add(button);

   button.addListener("tap", function() {
     secondPage.show();
   }, this);
},this);

page.show();

If you click on the second page on the add button, the added button is 
not visible at that time.
It first becomes visible after a resize of the browser or tab change or ...
After the resize the add button works correct.

I testet it with Google Chrome 16.0.912.75 m and Safari 5.1.2 on my 
Windows 7 Professional 64 bit.

Can somebody reproduce this problem and have an idea what's the matter 
with it?
Thanks


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to