For people who mostly use Java code to define a user interface.
Explenation
You must set the size of the parent panel TabLayoutPanel and the TabLayoutPanel itself. For example, I had a VerticalPanel and TabLayoutPanel, I added this TabLayoutPanel to the VerticalPanel (which makes it the parent panel of TabLayoutPanel) as follows:
veticalPanel.add(tabLayoutPanel); RootPanel.get().add(verticalPanel);
who did nothing ...
Answer
you should declare the size of your panels like this
//set size vertialPanel.setSize("100%","100%"); tabLayoutPanel.setSize("100%","100%") RootPanel.get().add(verticalPanel);
source share