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 2019/02/11 09:56:36 UTC

[royale-asjs] branch develop updated: Change IOSUtils with BrowserInfo

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 e687902  Change IOSUtils with BrowserInfo
e687902 is described below

commit e6879026916de5688d2a0163d48d55083f57345d
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Mon Feb 11 10:56:29 2019 +0100

    Change IOSUtils with BrowserInfo
---
 .../main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
index 5711eb1..2414b11 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as
@@ -43,7 +43,7 @@ COMPILE::SWF
 	import org.apache.royale.jewel.supportClasses.ResponsiveSizes;
 	import org.apache.royale.jewel.supportClasses.util.positionInsideBoundingClientRect;
 	import org.apache.royale.utils.UIUtils;
-	import org.apache.royale.utils.IOSUtils;
+	import org.apache.royale.utils.BrowserInfo;
 
 	/**
 	 *  The ComboBoxView class creates the visual elements of the org.apache.royale.jewel.ComboBox
@@ -197,7 +197,7 @@ COMPILE::SWF
                     {
 					// Fix temporary: when soft keyboard opens in ios devices browser is not resized, so popup gets under the keyboard
 					// this fixes the issue on iPad for now, but we need some better and more reliable way of doing this
-					if(IOSUtils.getIOSDevice() == IOSUtils.IOS_IPAD)
+					if(BrowserInfo.current().formFactor == "iPad")
 					{
 						var fromTop:Number = _textinput.element.getBoundingClientRect().top;
 						if(fromTop < 720)