You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/01/11 12:10:49 UTC
[royale-asjs] branch develop updated: tour-de-jewel: improve slider
examples
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new cdda220 tour-de-jewel: improve slider examples
cdda220 is described below
commit cdda2207e07c3eb201e40494448a15bd54665772
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Jan 11 13:10:37 2020 +0100
tour-de-jewel: improve slider examples
---
examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml | 6 +++---
examples/royale/TourDeJewel/src/main/royale/SliderPlayGround.mxml | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml
index 5dde7ff..d5502ee 100644
--- a/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/ButtonPlayGround.mxml
@@ -133,11 +133,11 @@ limitations under the License.
<html:H4 text="Button size"/>
<j:HGroup gap="3" itemsVerticalAlign="itemsSameHeight">
- <j:Button id="reizableButton" text="Resize {slider_w.value}x{slider_h.value}" emphasis="{StyledUIBase.PRIMARY}" width="120" height="40"/>
+ <j:Button id="reizableButton" text="Resize {slider_w.value}x{slider_h.value}" emphasis="{StyledUIBase.PRIMARY}" width="140" height="50"/>
<j:Button text="check layout"/>
</j:HGroup>
- <j:HSlider id="slider_w" width="350" value="120" minimum="110" maximum="350" valueChange="onValueChange(event)"/>
- <j:HSlider id="slider_h" width="350" value="50" minimum="40" maximum="350" valueChange="onValueChange(event)"/>
+ <j:HSlider id="slider_w" width="250" value="140" minimum="120" maximum="350" valueChange="onValueChange(event)"/>
+ <j:HSlider id="slider_h" width="250" value="50" minimum="40" maximum="350" valueChange="onValueChange(event)"/>
<j:Label text="Resize button to: '{reizableButton.width}x{reizableButton.height}'"/>
</j:Card>
</j:GridCell>
diff --git a/examples/royale/TourDeJewel/src/main/royale/SliderPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/SliderPlayGround.mxml
index 331f90b..873e78b 100644
--- a/examples/royale/TourDeJewel/src/main/royale/SliderPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/SliderPlayGround.mxml
@@ -57,13 +57,13 @@ limitations under the License.
case slider_h:
button1.width = slider_w.value;
button1.height = slider_h.value;
- button1.text = slider_w.value + "x" + slider_h.value;
+ button1.text = "HSlider to " + slider_w.value + "x" + slider_h.value;
break;
case vslider_w:
case vslider_h:
button2.width = vslider_w.value;
button2.height = vslider_h.value;
- button2.text = vslider_w.value + "x" + vslider_h.value;
+ button2.text = "VSlider to " + vslider_w.value + "x" + vslider_h.value;
break;
}
}