I have one window which is updating the DOM of another XUL window.

I thought the layout engine was supposed to look after the layout
process. However:

1) If I add a button to the DOM of the display window the first button
is displayed. Adding a second button results in no change to the
display. If I move the cursor over the display window the second button
magically appears.

2) If I have a box in the display window and change its "orient" or
"autostretch" attributes then no immediate effect on its children is
displayed. If I then do some subsequent action which forces a layout
then the effect of these attributes becomes apparent.

Is this a bug in the layout engine?

I have tried to force a layout of the display window but can find no way
do achieve this.

The obvious route of using XMLElement.boxObject.layoutManager.layout()
to the <window> element fails as no layoutManager seems to be present
for XULWindows.

How do I force a re-layout of the display window?




Reply via email to