Software Archive
Read-only legacy content
17061 Discussions

Rotated screen is not resized in portrait mode when Crosswalk is used

Kancho_K_
Beginner
815 Views

Hi guys,

I am having a screen resizing problem with my build with CrossWalk for Android. When I start the app everything is working fine, then I rotate the screen to landscape mode and still everything is fine, but when I rotate it back to portrait mode the screen somehow fails to get resized properly and almost half of it is left blank. Has anybody experienced such a problem before? Any fixes for this issue?

Thank you very much in advance!

Best Wishes,

Kancho

 

0 Kudos
7 Replies
PaulF_IntelCorp
Employee
815 Views

You might try a different version of Crosswalk. I recommend trying 12. You can also experiment with 14 by selecting the "shared" option. See this doc for more details about the difference between embedded and shared: https://software.intel.com/en-us/xdk/docs/choosing-crosswalk-build-options-shared-or-embedded

0 Kudos
Kancho_K_
Beginner
815 Views

Thanks for your fast reply, Paul!

I just tried it with Crosswalk Version: 12.41.296.4, but still the same problem. I am still with Intel XDK 1995. Should I change it to the latest release and then try again? I am using orientation mode = default and the FullScreen option unchecked. Should I change these options or just leave them with their default values as they are at the moment?

Thank you once again!

Best Wishes,

Kancho

 

0 Kudos
PaulF_IntelCorp
Employee
814 Views

I recommend you upgrade to 2170, it will give you access to the shared build option so you can try 14. The build system does not change, just the XDK and features in the XDK. The build system is cloud-based and serves all versions of the XDK.

The orientation switch can be used to force your app to stay in one orientation: portrait or landscape. The fullscreen option gives your app the full screen, without the status bars. I would certainly give them a try to see how they impact your app, they are easy enough to experiment with.
 

0 Kudos
Kancho_K_
Beginner
814 Views

Thanks Paul!

Also, I see that the footer disappears in landscape mode and then when I rotate back it goes to the middle of the screen.

 

0 Kudos
Kancho_K_
Beginner
814 Views

Hi Paul,

Just tried it with CrossWalk 14 and seems the problems does not exist anymore. Is there any way how to build the CrossWalk package without having to download and install CrossWalk 14 separately from Google Play Store? I read the documentation you shared with me that this is how the CrossWalk builds work, but would be great if can be included into the same package.

Thank you very much!

Best Wishes,

Kancho

 

0 Kudos
PaulF_IntelCorp
Employee
814 Views

Hi Kancho, glad to hear 14 fixes the issue! We are working on an embedded CW14 build option. It should be available in the near future. Unfortunately, company policy does not allow me to publish a date. However, it is being actively worked on.

0 Kudos
Kancho_K_
Beginner
814 Views

Thanks for your confirmation, Paul! That's really great that we will have CW14 embedded into the CW packages soon.

Best Wishes,

Kancho
 

0 Kudos
Reply