Author: jlaba...@google.com Date: Mon Jan 5 08:04:11 2009 New Revision: 4376
Modified: releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css Log: Fixed TreeItem stlyes that created a gap above Composite and complex widgets in Trees. Patch by: jlabanca Review by: ecc Issue: 504 Modified: releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java ============================================================================== --- releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java (original) +++ releases/1.6/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForTree.java Mon Jan 5 08:04:11 2009 @@ -18,7 +18,9 @@ import com.google.gwt.museum.client.common.AbstractIssue; import com.google.gwt.user.client.ui.CheckBox; +import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RadioButton; +import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Tree; import com.google.gwt.user.client.ui.TreeItem; import com.google.gwt.user.client.ui.VerticalPanel; @@ -41,6 +43,9 @@ TreeItem d = new TreeItem(new RadioButton("myradio", "I should line up nicely")); TreeItem e = new TreeItem(new CheckBox("I should line up nicely")); + SimplePanel panel = new SimplePanel(); + panel.setWidget(new Label("There should not be any space above me")); + TreeItem f = new TreeItem(panel); t.setSelectedItem(b); t.addItem(a); @@ -48,6 +53,7 @@ t.addItem(c); t.addItem(d); t.addItem(e); + t.addItem(f); b.addItem(ba); b.addItem(bb); bb.addItem(bba); Modified: releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css ============================================================================== --- releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css (original) +++ releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css Mon Jan 5 08:04:11 2009 @@ -1073,7 +1073,7 @@ } .gwt-Tree .gwt-TreeItem { - padding: 1px; + padding: 1px 0px; margin: 0px; white-space: nowrap; cursor: hand; Modified: releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css ============================================================================== --- releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css (original) +++ releases/1.6/user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css Mon Jan 5 08:04:11 2009 @@ -1073,7 +1073,7 @@ } .gwt-Tree .gwt-TreeItem { - padding: 1px; + padding: 1px 0px; margin: 0px; white-space: nowrap; cursor: hand; Modified: releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css ============================================================================== --- releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css (original) +++ releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css Mon Jan 5 08:04:11 2009 @@ -977,7 +977,7 @@ } .gwt-Tree .gwt-TreeItem { - padding: 1px; + padding: 1px 0px; margin: 0px; white-space: nowrap; cursor: hand; Modified: releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css ============================================================================== --- releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css (original) +++ releases/1.6/user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css Mon Jan 5 08:04:11 2009 @@ -977,7 +977,7 @@ } .gwt-Tree .gwt-TreeItem { - padding: 1px; + padding: 1px 0px; margin: 0px; white-space: nowrap; cursor: hand; Modified: releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css ============================================================================== --- releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css (original) +++ releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css Mon Jan 5 08:04:11 2009 @@ -1072,7 +1072,7 @@ } .gwt-Tree .gwt-TreeItem { - padding: 1px; + padding: 1px 0px; margin: 0px; white-space: nowrap; cursor: hand; Modified: releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css ============================================================================== --- releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css (original) +++ releases/1.6/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css Mon Jan 5 08:04:11 2009 @@ -1072,7 +1072,7 @@ } .gwt-Tree .gwt-TreeItem { - padding: 1px; + padding: 1px 0px; margin: 0px; white-space: nowrap; cursor: hand; --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---