Hi Sebastian,

Ralf Sternberg schrieb:
Sebastian Werner schrieb:
Normally the text-field is automatically synced by the layout engine. And this seems to work well, when using something like setWidth(20). Can you try to build a small example which demonstrates the bug? Just a toolbar and a textfield. Then I can play with it a bit.

I'm sorry, it was again my fault. We unintentionally added the text-field to two different parents. This worked with qx 0.6.5, but breaks with 0.7. At least I have a working standalone qx application skeleton now, so I can easier distinguish self made problems from qooxdoo problems.

Unfortunately, the issue has returned even after cleaning up our code.

The problem is that a certain widget that is a child of a toolbar (the text in the example) is being created after all other toolbar items but has to be displayed at a different place in the toolbar. Thus, we have to rearrange the toolbar's children list. This has something to do with the way RAP works and we cannot change it without major effort.

The solution is to remove the text from the toolbar and add it again at the correct location:

  toolbar.remove( text );
  toolbar.addAfter( text, sep );

And this is where the very same error as described before occurs again. But this time I can provide a code snippet. It would be very helpful if you could think of any workaround.

Regards,
  Ralf

Attachment: Application.js
Description: JavaScript source

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to