You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/08/08 19:34:10 UTC

svn commit: r983460 - in /pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra: TerraAlertSkin.java TerraPromptSkin.java terra_alert_skin.bxml terra_prompt_skin.bxml

Author: gbrown
Date: Sun Aug  8 17:34:09 2010
New Revision: 983460

URL: http://svn.apache.org/viewvc?rev=983460&view=rev
Log:
Resolve PIVOT-488.

Modified:
    pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraAlertSkin.java
    pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPromptSkin.java
    pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_alert_skin.bxml
    pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_prompt_skin.bxml

Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraAlertSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraAlertSkin.java?rev=983460&r1=983459&r2=983460&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraAlertSkin.java (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraAlertSkin.java Sun Aug  8 17:34:09 2010
@@ -55,8 +55,6 @@ public class TerraAlertSkin extends Terr
     };
 
     public TerraAlertSkin() {
-        setResizable(false);
-
         TerraTheme theme = (TerraTheme)Theme.getTheme();
         setBackgroundColor(theme.getColor(9));
     }
@@ -66,6 +64,8 @@ public class TerraAlertSkin extends Terr
         super.install(component);
 
         Alert alert = (Alert)component;
+        alert.setPreferredWidth(300);
+
         alert.getAlertListeners().add(this);
 
         // Load the alert content

Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPromptSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPromptSkin.java?rev=983460&r1=983459&r2=983460&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPromptSkin.java (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPromptSkin.java Sun Aug  8 17:34:09 2010
@@ -54,11 +54,17 @@ public class TerraPromptSkin extends Ter
         }
     };
 
+    public TerraPromptSkin() {
+        setResizable(true);
+    }
+
     @Override
     public void install(Component component) {
         super.install(component);
 
         Prompt prompt = (Prompt)component;
+        prompt.setPreferredWidth(300);
+
         prompt.getPromptListeners().add(this);
 
         // Load the prompt content

Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_alert_skin.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_alert_skin.bxml?rev=983460&r1=983459&r2=983460&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_alert_skin.bxml (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_alert_skin.bxml Sun Aug  8 17:34:09 2010
@@ -20,8 +20,7 @@ limitations under the License.
     xmlns:bxml="http://pivot.apache.org/bxml"
     xmlns="org.apache.pivot.wtk">
     <Border styles="{padding:12, backgroundColor:10, color:7}">
-        <TablePane preferredWidth="280"
-            styles="{horizontalSpacing:12, verticalSpacing:12}">
+        <TablePane styles="{horizontalSpacing:12, verticalSpacing:12}">
             <columns>
                 <TablePane.Column width="-1"/>
                 <TablePane.Column width="1*"/>

Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_prompt_skin.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_prompt_skin.bxml?rev=983460&r1=983459&r2=983460&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_prompt_skin.bxml (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/terra_prompt_skin.bxml Sun Aug  8 17:34:09 2010
@@ -25,8 +25,7 @@ limitations under the License.
 
     <TablePane.Row height="1*">
         <Border styles="{padding:12, backgroundColor:4, color:7}">
-            <TablePane preferredWidth="280"
-                styles="{horizontalSpacing:12, verticalSpacing:12}">
+            <TablePane styles="{horizontalSpacing:12, verticalSpacing:12}">
                 <columns>
                     <TablePane.Column width="-1"/>
                     <TablePane.Column width="1*"/>