Revision: 9048
Author: [email protected]
Date: Wed Oct 13 08:53:39 2010
Log: Setting the background color of LoggingPopup using Style so it works
correctly on IE. Also scrolling the log to the bottom when log items are
added.
Review at http://gwt-code-reviews.appspot.com/989801
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9048
Modified:
/trunk/user/src/com/google/gwt/logging/client/LoggingPopup.java
=======================================
--- /trunk/user/src/com/google/gwt/logging/client/LoggingPopup.java Tue Jun
22 06:26:45 2010
+++ /trunk/user/src/com/google/gwt/logging/client/LoggingPopup.java Wed Oct
13 08:53:39 2010
@@ -138,7 +138,7 @@
super(false, false);
VerticalPanel mainPanel = new VerticalPanel();
mainPanel.setBorderWidth(1);
- mainPanel.getElement().setAttribute("style", "background-color:white");
+ mainPanel.getElement().getStyle().setBackgroundColor("white");
final HTML titleBar = new HTML("<center><b>Logging</b></center>");
mainPanel.add(titleBar);
@@ -184,12 +184,12 @@
@Override
public void add(Widget w) {
logArea.add(w);
+
scrollPanel.setScrollPosition(scrollPanel.getElement().getScrollHeight());
}
@Override
public void setWidget(Widget w) {
logArea.clear();
- logArea.add(w);
- }
-
-}
+ add(w);
+ }
+}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors