Panel is giving its offset width before super.onAttach() is called

2009-10-05 Thread Rick
Hi all I am making an application using GWT 1.7. But I am surprised by the behaviour I got. I took a vertical panel and add a button on this. I set width of button to 500px. Now What I was expected that in onAttach () of Vertical panel, before calling super.onAttach(), the offsetWidth of

Re: Panel is giving its offset width before super.onAttach() is called

2009-10-05 Thread Rick
Hi all Sorry to say expected behaviour entered wrong. It should be: Actual output Before vp attached to RootPanel Offset width:0 Before super.onAttach called Offset width:500 After super.onAttach called Offset width:500 Expected output Before vp attached to

Re: Panel is giving its offset width before super.onAttach() is called

2009-10-05 Thread Thomas Broyer
On 5 oct, 12:59, Rick rick4...@gmail.com wrote: Hi all I am making an application using GWT 1.7. But I am surprised by the behaviour I got. I took a vertical panel and add a button on this. I set width of button to 500px. Now What I was expected that in onAttach () of Vertical panel,