JJR
JJR

Reputation: 773

Constrained Window render error

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?

Upvotes: 2

Views: 90

Answers (1)

sra
sra

Reputation: 23975

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.

Upvotes: 2

Related Questions