Re: TabLayoutPanel expand to fit content?

2011-07-20 Thread MChan
Well, in that case it seems the Layout implementation of GWT overrides when I set position via [Widget].getElement().getStyle().setPosition(Position.RELATIVE) ; it sets the position to 'absolute'. The same goes for overflow property, which is set to 'hidden' whatever I manually set it to in my

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread MChan
Hi, As a matter of fact, I'll have more than two TabLayoutPanel on one page. I'm trying to create a result page, and each result has a Show details link which opens a TabLayoutPanel that displays 2 tabs. I simplified what I'm trying to achieve in a separated project, but I still can't get what

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
the problem is not with your TabLayout panel. what you have there would work fine. The issue is with the Grid. Its best to use LayoutPanels inside other layoutpanels. In your case if all that you are doing is rendering two TabLayoutPanels, you don't have to necessarily use a grid. i would

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
Also, make sure the height of the tabLayoutPanel is set to 100% .gwt-TabLayoutPanel { height : 100%; } ~Ashwin On Tue, Jul 19, 2011 at 8:10 PM, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: the problem is not with your TabLayout panel. what you have there would work fine. The

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread MChan
Hey, Thanks for your quick reply. So, I already had the CSS rule for TabLayoutPanel set to 100%. I can see it in Inspect Element tool of Chrome. I'm not sure if using the SplitLayoutPanel (or DockLayoutPanel) would be okay in my situation, as the their center panel only accept one child

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
are you setting 100% as the height for both the resize layout panels? if yes how will the page render as your total height is 100% and you are assigning to the 1st resisze panel, the second panel would not be able to calculate its layout details. try setting the height to 50% and see the out

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
oh, if you want to render your panels on click of a button, then you don't necessarily need two ResizeLayoutPanels, just render the contents of the appropriate tabLayoutPanel alternatively, you can set the visibility of the panels to true/ false on click. this would also force the height

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread MChan
It still did not work. However, when I changed the resulting divs (Chrome inspect element tool) position to relative instead of absolute, I was able to see the tab content fit. But I can't do that programmatically. I ended up creating my own control, with custom animation. Thanks for your time!

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
you can set styles via code. On Wed, Jul 20, 2011 at 1:42 AM, MChan marilyne.c...@gmail.com wrote: It still did not work. However, when I changed the resulting divs (Chrome inspect element tool) position to relative instead of absolute, I was able to see the tab content fit. But I can't do

Re: TabLayoutPanel expand to fit content?

2011-07-18 Thread MChan
Hi, Have you figured out how to accomplish what you were trying to do? It could help the similar issue I've got here. I'm trying to get something like: RootLayoutPanel g:HTMLPanel h1Title/h1 Widget g:TabLayoutPanel ... AnotherWidget ... /AnotherWidget

Re: TabLayoutPanel expand to fit content?

2011-07-18 Thread ashwin.desi...@gmail.com
you are having this problem because your page is not able to resize properly. What sort of widget is your Widget is that a Simple Panel? you can place your Tab Layout Panel directly inside the RootLayout Panel. since you want to have two Tab Panels, place them inside a simple panel would not

TabLayoutPanel expand to fit content?

2010-09-02 Thread Falcon
I'm pretty new to the GWT layout system. Since I'm using standards mode I really should use TabLayoutPanel instead of TabPanel. However, I need the content area of each tab to fill all of the vertical and horizontal space of its parent. How do I accomplish that? Thanks! -- You received this