royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] 02/03: Remove Slider class selectors
Date Fri, 01 Jun 2018 10:09:19 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 87006cd548d5398a700ea93255cf1325aa1166bb
Author: Harbs <harbs@in-tools.com>
AuthorDate: Fri Jun 1 00:30:12 2018 +0300

    Remove Slider class selectors
---
 frameworks/projects/Basic/src/main/resources/defaults.css           | 6 ------
 .../src/main/royale/org/apache/royale/html/beads/SliderView.as      | 2 ++
 manualtests/RoyaleTest_Panel/src/MyInitialView.mxml                 | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/resources/defaults.css b/frameworks/projects/Basic/src/main/resources/defaults.css
index 31968d0..d0153ef 100644
--- a/frameworks/projects/Basic/src/main/resources/defaults.css
+++ b/frameworks/projects/Basic/src/main/resources/defaults.css
@@ -608,12 +608,6 @@ Slider
 	IBeadController: ClassReference("org.apache.royale.html.beads.controllers.HSliderMouseController");
 	position: relative;
 }
-.SliderTrack {
-	position: absolute;
-}
-.SliderThumb {
-	position: absolute;
-}
 
 Spinner
 {
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SliderView.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SliderView.as
index 070fa2a..e5765ef 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SliderView.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SliderView.as
@@ -100,10 +100,12 @@ package org.apache.royale.html.beads
 			COMPILE::JS {
 				_track = new Button();
 				_track.className = "SliderTrack";
+				_track.style = {"position": "absolute", "padding" : 0};
 				host.addElement(_track);
 				
 				_thumb = new TextButton();
 				_thumb.className = "SliderThumb";
+				_thumb.style = {"position" : "absolute", "padding" : 0};
 				_thumb.text = '\u29BF';
 				host.addElement(_thumb);
 			}
diff --git a/manualtests/RoyaleTest_Panel/src/MyInitialView.mxml b/manualtests/RoyaleTest_Panel/src/MyInitialView.mxml
index 5af7baf..861a1c0 100644
--- a/manualtests/RoyaleTest_Panel/src/MyInitialView.mxml
+++ b/manualtests/RoyaleTest_Panel/src/MyInitialView.mxml
@@ -152,7 +152,7 @@ limitations under the License.
 		<js:Spacer height="10" />
 		<js:Label id="slideMe" text="slider value" />
 		<js:Label id="slideMe2" text="{slider.value}" />
-		<js:Slider id="slider" width="200"
+		<js:Slider id="slider" width="200" height="15"
 					  valueChange="sliderChanged(slider)"
 					  minimum="0"
 					  maximum="100"

-- 
To stop receiving notification emails like this one, please contact
harbs@apache.org.

Mime
View raw message