Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TabLayoutPanel auto height grow in gwt2.0

 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am using TabLayoutPanel in GWT2.0
i have some widgets added in it. which get added in TabLayoutPanel dynamically.
but when new widget get added TabLayoutPanel doesn't grow. as we have to specify it's height and width which then get fixed.

i am badly struck here as i want tab panel in my application.

is there any other way???
or can we increase height and width dynamically???
 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but when new widget get added TabLayoutPanel doesn't grow

What do you mean by grow? What do you expect to happen when you add the widget.
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your replay,

grow means, TabLayoutPanel should increase it's height accordingly the widgets added...

i am using TabLayoutPanel in gwt2.0.


some of my code in Widget.ui.xml

<gwt:TabLayoutPanel ui:field="searchTab"
barHeight="25" barUnit="PX" height="16PC" width="50PC">
<gwt:tab>
<gwt:header>Search</gwt:header>
 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is strange. I usually use DecoratedTabPanel and have not encountered this problem before.
Could you please post SSCCE code which we can try out?
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was previously using gwt 1.6
in which i was using DecoratedTabPanel which was working properly.
but now i am migrating it in gwt2.0
in which i can't use it. So i am using TabLayoutPanel.

code in Widget.ui.xml is,

<gwt:TabLayoutPanel ui:field="searchTab"
barHeight="25" barUnit="PX" height="16PC" width="50PC">
<gwt:tab>
<gwt:header>Search</gwt:header>
<gwt:VerticalPanel ui:field="fltVertPanel">
<gwt:FlexTable ui:field="flexTable2"></gwt:FlexTable>
</gwt:VerticalPanel>
</gwt:tab>
</gwt:TabLayoutPanel>



and in java file,

@UiField
TabLayoutPanel flightSearchTab;

@UiField
FlexTable flexTable2;

@UiField
VerticalPanel fltVertPanel;


my flex table contains all textboxes and all which get added dynamically on clicking some buttons
which increase height. but as height of TabLayoutPanel does not increase.
it get invisible.

so i want to increase height of TabLayoutPanel also on run time.

 
Maneesh Godbole
Saloon Keeper
Posts: 11329
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are using the UI builder. Don't know about it. Sorry.
My current project uses 2.0 and I can use DecoratedTabPanel. I don't know what problem you are facing because of 2.0.
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am using GWT 2.0.3
As i search for it also, in UI builder it's difficult to add a Decorated tab panel. so i was using TabLayoutPanel.
but as i said early it is giving problem in auto height.

so now what i done is,
i am using VerticalPanel in UiBinder.
and added DecoratedTabPanel in VerticalPanel in java file not in UiBinder
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic