PDA

View Full Version : Dynamic dialog buttons don't have margin



mschering
21 Jun 2007, 6:09 AM
When I add buttons to a dialog dynamically to a layout dialog:

1. Layout dialog with multiple tabs is opened.
2. I click another tab that loads a file with XHR
3. In this file I destroy the existing dialog buttons and then I add 2 new ones that do a tab specific operation.

The problem is that the dynamic buttons don't have any space in between.

Does anybody know why?

mschering
21 Jun 2007, 6:13 AM
Another thing. If I minimize and then maximize the dialog then the buttons are OK again.

also putting a:

dialog.hide();
dialog.show();

behind the addButton part works but obviously slows things down dramatically.