PDA

View Full Version : [FIXED] TableData & IE



Bezge
12 May 2009, 8:11 AM
I have a LayoutContainer with a TableLayout. Whenever I add content specifying the width of a cell using TableData (e.g. container.add(someWidget, new TableData("600px", "auto"));) then the cell is not displayed (even not present) in IE.

I used the latest gxt version from SVN and IE 7.0.

sven
12 May 2009, 8:15 AM
Please post a complete testcase that is demonstrating this issue.

Bezge
13 May 2009, 2:26 AM
The following example is fine in Firefox but in IE the label l2 is not displayed

package gxt.playground.client;

import com.extjs.gxt.ui.client.GXT;
import com.extjs.gxt.ui.client.util.Theme;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
import com.extjs.gxt.ui.client.widget.layout.TableData;
import com.extjs.gxt.ui.client.widget.layout.TableLayout;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

public class Playground implements EntryPoint {

private Viewport viewport;

@Override
public void onModuleLoad() {
GXT.setDefaultTheme(Theme.GRAY, true);

viewport = new Viewport();
viewport.setLayout(new FlowLayout());

TableLayout layout = new TableLayout(2);

LayoutContainer panel = new LayoutContainer(layout);

Label l1 = new Label("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.");
Label l2 = new Label("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.");

panel.add(l1);
TableData td = new TableData("200px", "auto");
panel.add(l2, td);

viewport.add(panel);

RootPanel.get().add(viewport);
}

}

sven
13 May 2009, 2:57 AM
Thanks for reporting. Found the issue.

sven
13 May 2009, 5:56 AM
Fixed in SVN