I am strongly convinced that CSS does not work on Horizontal Panel
Splitter, or better, it does not work correctly as it is reported by
documentation.
I just created a GWT Java Project like this:
public class TestGWT implements EntryPoint {
private Button clickMeButton;
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
rootPanel.setPixelSize(Window.getClientWidth(),
Window.getClientHeight());
HorizontalSplitPanel hsp = new HorizontalSplitPanel();
hsp.setSize("100%", "100%");
clickMeButton = new Button();
hsp.setLeftWidget(clickMeButton);
hsp.setSplitPosition("200px");
rootPanel.add(hsp);
clickMeButton.setText("Click me!");
clickMeButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
Window.alert("Hello, GWT World!");
}
});
}
}
I went into the TestGWT.CSS file in order to change the background-
color of the Splitter.
.gwt-HorizontalSplitPanel .splitter {
background-color: #000000;
cursor: move;
}
Nothing changes! Whatever color i put, it is always default color
(i.d.: #C3D9FF)
I tried to change
1. "background-color" in "color" -- nothing
2. "cursor: move" in "cursor: col-resize" or "cursor: resize" --
nothing
3. used "border", "border-color" -- nothing
While if i try to change the
.gwt-HorizontalSplitPanel {
border: 8px solid #000000;
}
and it works fine.
I use Eclipse, GWT Designer, GWT 2.0.4, IE8 and run my experiments in
Development Mode.
Where's the bug?
--
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.