]> source.dussan.org Git - vaadin-framework.git/commitdiff
SimpleTree styling changed for #12058
authorMarc Englund <marc@vaadin.com>
Thu, 13 Jun 2013 13:10:51 +0000 (16:10 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 13 Jun 2013 15:48:28 +0000 (15:48 +0000)
Change-Id: Ie521b4ba9362a8f46619bd675018bfbe9f2574ac

client/src/com/vaadin/client/SimpleTree.java

index 23bdc4828f9d7cd728dfdebd375044a3caad4441..0745a49aa03e17a4eed6100581d6363bce65e2f7 100644 (file)
@@ -19,7 +19,6 @@ package com.vaadin.client;
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.dom.client.SpanElement;
 import com.google.gwt.dom.client.Style;
-import com.google.gwt.dom.client.Style.BorderStyle;
 import com.google.gwt.dom.client.Style.Cursor;
 import com.google.gwt.dom.client.Style.Display;
 import com.google.gwt.dom.client.Style.Unit;
@@ -58,14 +57,14 @@ public class SimpleTree extends ComplexPanel implements HasDoubleClickHandlers {
 
         style = handle.getStyle();
         style.setDisplay(Display.NONE);
-        style.setProperty("textAlign", "center");
-        style.setWidth(10, Unit.PX);
+        style.setWidth(0.5, Unit.EM);
+        style.setHeight(0.5, Unit.EM);
         style.setCursor(Cursor.POINTER);
-        style.setBorderStyle(BorderStyle.SOLID);
-        style.setBorderColor("#666");
-        style.setBorderWidth(1, Unit.PX);
+        style.setBackgroundColor("gray");
+        style.setColor("white");
+        style.setPadding(4, Unit.PX);
         style.setMarginRight(3, Unit.PX);
-        style.setProperty("borderRadius", "4px");
+        style.setLineHeight(0.5, Unit.EM);
         handle.setInnerHTML("+");
         getElement().appendChild(handle);
         getElement().appendChild(text);