View Full Version : HBoxLayout and IE6

21 Jul 2009, 8:22 AM
Is it just me or when a container is set to HBoxLayout, it renders on firefox fine but fails to render entirely on IE6 when the container has a com.google.gwt.user.client.ui.Image Widget?

Test it with some random image for some_image.png

EDIT: Sorry, meant to post this in the help section.

public void onModuleLoad() {
final Viewport viewport = new Viewport();
viewport.setLayout(new RowLayout());
final LayoutContainer testContainer = new LayoutContainer();

final HBoxLayout hboxlayout = new HBoxLayout();
hboxlayout.setPadding(new Padding(5));


final HBoxLayoutData flex = new HBoxLayoutData(new Margins(0, 5, 0, 5));

testContainer.add(new Label("Test Label 1"), new HBoxLayoutData(new Margins(0, 5, 0, 5)));

testContainer.add(new Text(), flex);

testContainer.add(new Image("some_image.png"), new HBoxLayoutData(new Margins(0, 5, 0, 5)));

viewport.add(testContainer, new RowData(1, -1));