Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage shift offset error on StageText focus #14

Closed
BenLeffler opened this issue Aug 10, 2017 · 3 comments
Closed

Stage shift offset error on StageText focus #14

BenLeffler opened this issue Aug 10, 2017 · 3 comments

Comments

@BenLeffler
Copy link

Problem Description

When the soft keyboard is invoked under certain circumstances, the Stage3D and classic display list layers shift further up than the StageText layer does.

Steps to Reproduce

  • build app with manifest stating "aspectRatio" set to portrait, and "fullScreen" set to false
  • The Android bar that appears down the bottom can be dismissed in Samsung Experience 8.1 by tapping the dot on the far left of the bar:
    ss01
  • This sends the app in to a semi fullscreen mode (The top bar remains, but the bottom bar becomes hidden - I believe this is a feature possibly introduced by latest Samsung's android skin):
    ss02
  • Add a StageText object to the app and the user taps it to assigns focus to it, thus invoking the soft keyboard. In doing this, the bottom bar will reappear beneath the soft keyboard:
    ss03
  • When the bottom bar is reintroduced and focus is given to the StageText object (as per the above point), all layers are uniformly offset and render correctly:
    ss04

Known Workarounds

None that I know of. However I have noticed that when the bottom bar has been collapsed in this way, the stage.stageHeight value is > the stage.fullScreenHeight value. So in theory it should be an issue that can be identified at runtime and adjustments made to the StageText object y position. But this is not ideal and can have ramifications when a user dismisses the soft keyboard without revoking focus from the StageText object.

@PrimaryFeather
Copy link
Contributor

I was just notified by Adobe that this bug should be fixed in the latest AIR SDK beta version. Could you try that out, Ben, and close the bug if that's the case? Thanks a lot in advance!

@BenLeffler
Copy link
Author

I can confirm that this issue has been fixed.

@PrimaryFeather
Copy link
Contributor

Thanks, Ben!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants