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

iOS: Incorrect handling of window Vertical layout ! #14002

Open
1 task done
Informate opened this issue Mar 5, 2024 · 0 comments
Open
1 task done

iOS: Incorrect handling of window Vertical layout ! #14002

Informate opened this issue Mar 5, 2024 · 0 comments
Labels
bug ios needs triage This issue hasn't been reviewed by maintainers

Comments

@Informate
Copy link

Informate commented Mar 5, 2024

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

On some iPhone, but NOT ALL and ALWAYS (possibly related to the extendSafeArea=true feature), especially on some old iPhone 8:
If I have a vertical layout set directly to the main window object (not at creation time), the views do not shows correctly.
I found that an intermediate view is added to the stack, but the layout property is not correctly inherited.

// FIXING WORKAROUND
setTimeout(()=>{if (win.children.length===1) win.children[0].layout='vertical';},500);

Maybe also setting at creation time the layout property could work, but not tested at the moment.

Expected Behavior

The window layout is vertical

Actual behavior

An intermediate view is added but the layout is not inherited!

Reproducible sample

Pseudo Code:

win = Ti.UI.createWindow({extendSafeArea: true, fullscreen:false, navBarHidden: true});
win.layout='vertical';
win.add(Ti.UI.createView(...));
win.add(Ti.UI.createScroll({height: Ti.UI.FILL}));
// FIX
setTimeout(()=>{if (win.children.length===1) win.children[0].layout='vertical';},500);

Steps to reproduce

run many times the app on "some" (old?) iPhone.

Platform

iOS

SDK version you are using

12.1.2.GA

Alloy version you are using

No response

@Informate Informate added bug needs triage This issue hasn't been reviewed by maintainers labels Mar 5, 2024
@m1ga m1ga added the ios label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ios needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants