You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2018/07/09 15:24:40 UTC

[royale-asjs] branch feature/revert-refactor updated: Fixed offset buttons

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/feature/revert-refactor by this push:
     new 00223f0  Fixed offset buttons
00223f0 is described below

commit 00223f0ae013856b6996b0c19045fee98e74f753
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Jul 9 18:24:33 2018 +0300

    Fixed offset buttons
---
 .../Basic/src/main/royale/org/apache/royale/html/beads/SpinnerView.as   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SpinnerView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SpinnerView.as
index 3f5cffc..a0e0398 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SpinnerView.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SpinnerView.as
@@ -110,6 +110,8 @@ COMPILE::JS {
 			IEventDispatcher(value).addEventListener("heightChanged",sizeChangeHandler);
 			COMPILE::JS {
 				var host:UIBase = value as UIBase;
+				// depending on the surrounding layout, the element can be offset without this.
+				host.element.style.position = "absolute";
 
 				_increment = new SpinnerButton();
 				_increment.text = '\u25B2';