Take a look at org.apache.royale.utils.OSUtils

-----Original Message-----
From: Bilbosax <[email protected]> 
Sent: Tuesday, March 16, 2021 2:42 PM
To: [email protected]
Subject: [EXTERNAL] Re: Soft Keyboard Issue

I have come up with a bandaid for now.  If a textInput gains focus, I block the 
resizing of my app, and allow it to resize again after the textInput loses 
focus.

This works great on a mobile device because they have soft keyboards and are 
the root of this problem. This still leaves a problem for me because if someone 
clicks a textInput on a desktop browser, and then tries to resize their browser 
while the textInput has focus, the app will not rescale. This is also the case 
if they rotate their mobile device during input.

So it just feels like a bandaid.

Wish there was a reliable way to test whether the browser was on a phone, a 
tablet, or a desktop.  Then the problem would be solved.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply via email to