Hi, i recently wrote somewhat similar .
TabPanel are using <table>, the total size is defined by its children. TabLayoutPanel are user position:absolute, the size is defined either explicitly or by its parent. Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 21 Jul., 23:51, Thad <[email protected]> wrote: > How to I make a TabLayoutPanel size based on the underlying widget? > > I took a look at my project under 2.1.0.M2 and noticed that TabPanel > was deprecated. Since I used this widget in several critical places, > I took a stab at replacing it with TabLayoutPanel. PROBLEM: None of > the TabLayoutPanels size correctly. In fact, they display with no > size whatsoever. While I can see them in Firebug, I see only the tab > text in the browser widow, not the attached widget. > > I cannot use UIBuilder: the contents of my application's tabs, > sometimes even the number of tabs, is determined at runtime by data > out of my control. Likewise the size of a TabPanel my change, like > when a dialog box presents different information, or based on the > dimensions of a multi-tab form. Nor can my TabPanels attach directly > to a RootLayoutPanel, even if I were using one. TabPanels in my > application are nested (usually) in VerticalPanels (which I find are > more flexible for dynamic layout than FlowPanels). > > I am developing and running in standards mode, and have been for over > 6 months. Although the javadocs warn that TabPanels work only in > quirks mode, I've had no trouble with Firefox 3.6, IE7, IE8, and > Safari 4 and 5. Neither have I had any trouble with CellPanels > (http://code.google.com/webtoolkit/doc/latest/ > DevGuideUiPanels.html#Standards), though I did switch from DockPanel > to DockLayoutPanel. > > TabPanel mimics a Mac/Windows UI that I'm (so far) successfully > recreating, and I'd hate to see them go away. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
