In my application, I have need a widget I call Line. It is nothing
more than a SimplePanel with dimensions and a color. It's described
in a JSONObject. So
public class Line extends SimplePanel implements ScreenUiWidget {
public Line(JSONObject jsonObject) {
super();
Set keys = jsonObject.keySet();
for (Iterator iter = keys.iterator(); iter.hasNext();) {
String key = (String) iter.next();
try {
if (key.equals("bounds")) {
bounds = new
ScreenItemBounds(jsonObject.get(key));
setSize(""+bounds.width + "px",
""+bounds.height + "px");
...
}
One call I was making was DOM.setStyleAttribute(getElement(),
"borderStyle", "hidden");
This line causes a crash in IE.
Why? I can't figure it out. Elsewhere I call
DOM.setStyleAttribute(getElement(), "borderColor", color); and
DOM.setStyleAttribute(getElement(), "backgroundColor", color). These
work so why does the one for "borderStyle" crash?
DOM.setStyleAttribute(getElement(), "borderStyle", "hidden"); causes
no trouble in Firefox or Safari.
I can live without this call, but why is it crashing? What other
gotchas might be out there? Since I develop in Linux--where
everything ran fine--it took a damn long while to debug.
I'm using GWT 1.5.2
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---