2
votes

Basically we have two problems and they may depend so Here is the link to the second question:

We tried the constrained border layout example from the API with the difference of setting autoShow: true which ends in a broken window rendered to the top left of the document.

How can this be fixed and where is the error?

1
I had the same problem. The reason was that the window had no size defined. - Lorenz Meyer
@LorenzMeyer Thanks for the comment but the window actually has a height and width set. - JJR
I think @sra is correct with his explanation. - Lorenz Meyer

1 Answers

2
votes

I guess you are facing the problem that the constraining container didn't finished the layout yet so that the window failed to layout itself by using the constrain target. I recommend you to call setVisible(true) on the window by using the afterFirstLayout method. The method is documented as private but based on the usage within the framework itself it should better be promoted as protected template, so you should be save using it.

I guess the afterRender wouldn't be enough cause the layout hadn't be processed yet. And the afterLayout template method would run more then once.

You may give it a try.