I just found the answer! If it is useful for someone, i just assumed TabBar height would adjust to bigger images, but i found a doc that explains that the "Layout" components that require a size, like in the TabLayoutPanel constructor, wont resize automatically.
2012/10/7 Renato Beserra <[email protected]> > Hi, > > I have a TabLayoutPanel, and I would like to add tabs with images. > > I tried the following code: > > public class AppTabPanel extends TabLayoutPanel { > public AppTabPanel() { > super(2,Unit.EM); > //tab with text > add(new MyCustomPanel(), "InĂcio"); > > //tab with image > add(new MyOtherPanel(), new Image("images/image1.png")); > } > } > > The content is fine, just like the text Tab. But the image get some weird > margins and is cut by the the "tab bar" div. > > I searched the web and the group and tried some CSS hacks, but none was > sucessful. > > Can anyone help me do it the right way? > > I will try ui:bundle next, but i think that should be possible to code > this. > > > Thanks in advance, > > > > -- > Renato Beserra Sousa > -- Renato Beserra Sousa -- 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.
