changeset 7721:96b2950a91e3

RT-38352: [CSS] Warning messages in media Ensemble tests
author David Grieve<david.grieve@oracle.com>
date Tue, 19 Aug 2014 12:52:20 -0400
parents 0c8c5cd4ad4e
children b96a3083c5ac
files apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/streamingmediaplayer/PlayerPane.java apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/alphamediaplayer/AlphaMediaPlayer.css apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/overlaymediaplayer/OverlayMediaPlayer.css apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/streamingmediaplayer/StreamingMediaPlayer.css
diffstat 4 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/streamingmediaplayer/PlayerPane.java	Tue Aug 19 07:25:25 2014 -0700
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/media/streamingmediaplayer/PlayerPane.java	Tue Aug 19 12:52:20 2014 -0400
@@ -178,8 +178,7 @@
 
         // Play label
         playTime = new Label();
-        playTime.setPrefWidth(130);
-        playTime.setMinWidth(50);
+        playTime.setMinWidth(Control.USE_PREF_SIZE);
         playTime.setTextFill(Color.WHITE);
         mediaTopBar.getChildren().add(playTime);
 
@@ -193,8 +192,7 @@
         volumeSlider = new Slider();
         volumeSlider.setId("media-slider");
         volumeSlider.setPrefWidth(120);
-        volumeSlider.setMinWidth(30);
-        volumeSlider.setMaxWidth(Region.USE_PREF_SIZE);
+        volumeSlider.setMaxWidth(Double.MAX_VALUE);
         volumeSlider.valueProperty().addListener((Observable ov) -> {
         });
         volumeSlider.valueProperty().addListener((ObservableValue<? extends Number> observable, Number oldValue, Number newValue) -> {
@@ -202,6 +200,7 @@
                 mp.setVolume(volumeSlider.getValue() / 100.0);
             }
         });
+        HBox.setHgrow(volumeSlider, Priority.ALWAYS);
         mediaTopBar.getChildren().add(volumeSlider);
 
         setTop(mediaTopBar);
--- a/apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/alphamediaplayer/AlphaMediaPlayer.css	Tue Aug 19 07:25:25 2014 -0700
+++ b/apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/alphamediaplayer/AlphaMediaPlayer.css	Tue Aug 19 12:52:20 2014 -0400
@@ -53,8 +53,7 @@
     -fx-background-radius: 2.5, 2.5, 1.5;
     -fx-padding: 0.208333em; 
     -fx-background-image: url("../../shared-resources/slider.png");
-    -fx-background-image-width: 10;
-    -fx-background-image-slice: 0 fill;
+    -fx-background-repeat: round no-repeat;
 }
 
 #media-slider .thumb {
--- a/apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/overlaymediaplayer/OverlayMediaPlayer.css	Tue Aug 19 07:25:25 2014 -0700
+++ b/apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/overlaymediaplayer/OverlayMediaPlayer.css	Tue Aug 19 12:52:20 2014 -0400
@@ -73,8 +73,7 @@
     -fx-background-radius: 2.5, 2.5, 1.5;
     -fx-padding: 0.208333em; 
     -fx-background-image: url("../../shared-resources/slider.png");
-    -fx-background-image-width: 10;
-    -fx-background-image-slice: 0 fill;
+    -fx-background-repeat: round no-repeat;
 }
 
 #media-slider .thumb {
--- a/apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/streamingmediaplayer/StreamingMediaPlayer.css	Tue Aug 19 07:25:25 2014 -0700
+++ b/apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/streamingmediaplayer/StreamingMediaPlayer.css	Tue Aug 19 12:52:20 2014 -0400
@@ -53,8 +53,7 @@
     -fx-background-radius: 2.5, 2.5, 1.5;
     -fx-padding: 0.208333em; 
     -fx-background-image: url("../../shared-resources/slider.png");
-    -fx-background-image-width: 10;
-    -fx-background-image-slice: 0 fill;
+    -fx-background-repeat: round no-repeat;
 }
 
 #media-slider .thumb {