Hi,
I found a bug in gwt grid.
I just set a normal background image:
css code:
.myMainGrid{
background-image: url('http://code.google.com/webtoolkit/
logo-185x175.png');
}
java code:
public class Tester extends Composite {
Grid mainGrid;
public Tester() {
mainGrid = new Grid(10,10);
mainGrid.setWidth(500+"px");
mainGrid.setHeight(500+"px");
mainGrid.setBorderWidth(1);
initWidget(mainGrid);
setStyleName("myMainGrid");
}
}
entry point code:
public class MyEntryPoint implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
DialogBox dlgMainScreen = new DialogBox();
dlgMainScreen.setText("test ");
dlgMainScreen.add(new Tester());
dlgMainScreen.show();
dlgMainScreen.center();
}
}
Here is my screenshot:
www.freewebtown.com/salvindata/data/gwt%20background%20bug.JPG
What is undesirable is that every cell in First Column gets the same
image as background. i tried same css
in a simple html table and i found it works fine. why does gwt do so ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---