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

How to find out which segment ist the hinge. #5

Open
MalteRei opened this issue Apr 8, 2020 · 0 comments
Open

How to find out which segment ist the hinge. #5

MalteRei opened this issue Apr 8, 2020 · 0 comments

Comments

@MalteRei
Copy link

MalteRei commented Apr 8, 2020

Hey,

in the explainer it says:

developers will be able to infer the number of hinges available as well as the hinge orientation

I have tried out the polyfill. Now I am wondering how the developer is able to infer which segments are safe to use.
From my understanding the polyfill tries to emulate a dual screen device when foldSize = 0. Nevertheless it still returns three segments. The second one has a width of 0.
When the foldSize is > 0 I think the polyfill is emulating a foldable device with a single screen where one might be interested to know where the fold is to not place critical content there even though there is screen space available, but in some postures of the device not well visible.
Is the proposal meant to only return two segments when there is a hinge just like in this picture?


image

Also, will the segments be in any order. Or should a devloper pick the segment they want to place content at based on the size of the segment? So for a foldable device I assume the hinge is the smallest segment which is why I place the least relevant content on the smallest segment.

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

No branches or pull requests

1 participant