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

-- 
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.

Reply via email to