In Showcase, gave some buttons a fixed width so they would line up nicely.

Patch by: jlabanca
Review by: ecc
Issue: 3396



git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4896 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java
index b4f180c..954482a 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwAnimation.java
@@ -257,6 +257,7 @@
 
     // Add start button
     startButton = new Button(constants.cwAnimationStart());
+    startButton.addStyleName("sc-FixedWidthButton");
     startButton.addClickHandler(new ClickHandler() {
       public void onClick(ClickEvent event) {
         animation.run(2000);
@@ -266,6 +267,7 @@
 
     // Add cancel button
     cancelButton = new Button(constants.cwAnimationCancel());
+    cancelButton.addStyleName("sc-FixedWidthButton");
     cancelButton.addClickHandler(new ClickHandler() {
       public void onClick(ClickEvent event) {
         animation.cancel();
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwCookies.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwCookies.java
index e1d9977..4c8d83f 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwCookies.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/other/CwCookies.java
@@ -130,6 +130,7 @@
     // Display the existing cookies
     existingCookiesBox = new ListBox();
     Button deleteCookieButton = new Button(constants.cwCookiesDeleteCookie());
+    deleteCookieButton.addStyleName("sc-FixedWidthButton");
     mainLayout.setHTML(0, 0, "<b>" + constants.cwCookiesExistingLabel()
         + "</b>");
     mainLayout.setWidget(0, 1, existingCookiesBox);
@@ -143,6 +144,7 @@
     // Display the name of the cookie
     cookieValueBox = new TextBox();
     Button setCookieButton = new Button(constants.cwCookiesSetCookie());
+    setCookieButton.addStyleName("sc-FixedWidthButton");
     mainLayout.setHTML(2, 0, "<b>" + constants.cwCookiesValueLabel() + "</b>");
     mainLayout.setWidget(2, 1, cookieValueBox);
     mainLayout.setWidget(2, 2, setCookieButton);
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwVerticalPanel.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwVerticalPanel.java
index dd9ea5f..8115968 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwVerticalPanel.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/panels/CwVerticalPanel.java
@@ -83,7 +83,7 @@
 
     // Add some content to the panel
     for (int i = 1; i < 10; i++) {
-      vPanel.add(new Button(constants.cwVerticalPanelButton() + "" + i));
+      vPanel.add(new Button(constants.cwVerticalPanelButton() + " " + i));
     }
 
     // Return the content
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/tables/CwFlexTable.java b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/tables/CwFlexTable.java
index 28368a7..09ebad2 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/client/content/tables/CwFlexTable.java
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/client/content/tables/CwFlexTable.java
@@ -106,6 +106,7 @@
             addRow(flexTable);
           }
         });
+    addRowButton.addStyleName("sc-FixedWidthButton");
 
     Button removeRowButton = new Button(constants.cwFlexTableRemoveRow(),
         new ClickHandler() {
@@ -113,6 +114,7 @@
             removeRow(flexTable);
           }
         });
+    removeRowButton.addStyleName("sc-FixedWidthButton");
     VerticalPanel buttonPanel = new VerticalPanel();
     buttonPanel.setStyleName("cw-FlexTable-buttonPanel");
     buttonPanel.add(addRowButton);
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase.css
index 838ef65..87e96c2 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase.css
@@ -113,6 +113,9 @@
   padding: 10px 2px;
   margin: 10px 0px;
 }
+.sc-FixedWidthButton {
+  width: 10em;
+}
 
 /**
  * Applied to specific components in Content Widgets.
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase_rtl.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase_rtl.css
index 08614c6..11e0fb5 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase_rtl.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/chrome/Showcase_rtl.css
@@ -113,6 +113,9 @@
   padding: 10px 2px;
   margin: 10px 0px;
 }
+.sc-FixedWidthButton {
+  width: 10em;
+}
 
 /**
  * Applied to specific components in Content Widgets.
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase.css
index 1af6ef0..4597500 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase.css
@@ -115,6 +115,9 @@
   padding: 10px 2px;
   margin: 10px 0px;
 }
+.sc-FixedWidthButton {
+  width: 10em;
+}
 
 /**
  * Applied to specific components in Content Widgets.
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase_rtl.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase_rtl.css
index 04f9e6e..ab92d3a 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase_rtl.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/dark/Showcase_rtl.css
@@ -115,6 +115,9 @@
   padding: 10px 2px;
   margin: 10px 0px;
 }
+.sc-FixedWidthButton {
+  width: 10em;
+}
 
 /**
  * Applied to specific components in Content Widgets.
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase.css
index c31a010..00ea6f7 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase.css
@@ -113,6 +113,9 @@
   padding: 10px 2px;
   margin: 10px 0px;
 }
+.sc-FixedWidthButton {
+  width: 10em;
+}
 
 /**
  * Applied to specific components in Content Widgets.
diff --git a/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase_rtl.css b/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase_rtl.css
index 2ab88f2..32f9ca7 100644
--- a/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase_rtl.css
+++ b/samples/showcase/src/com/google/gwt/sample/showcase/public/standard/Showcase_rtl.css
@@ -113,6 +113,9 @@
   padding: 10px 2px;
   margin: 10px 0px;
 }
+.sc-FixedWidthButton {
+  width: 10em;
+}
 
 /**
  * Applied to specific components in Content Widgets.