Closed ragecryx closed 3 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Still open
After some thought it's good that the library means the available space because you can have split-screen apps for example and you may want to adapt the UI properly. So adding something like screen-aspect-ratio
should be the best solution.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
In my case with a Galaxy Nexus AVD at 720 x 1280 resolution the rule matches
@media (aspect-ratio: 45/74)
but not@media (aspect-ratio: 9/16)
as I expected.
Can it be solved with min-aspect-ratio
and max-aspect-ratio
? Like this:
'@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 45/74)': {
...
}
Sorry for late response.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
It should be clear as to which aspect ratio the library checks against. And if both can't be supported then the one supported probably needs to be the Screen area not the Window area as it currently is.
Steps to Reproduce
@media (aspect-ratio: 9/16)
In my case with a Galaxy Nexus AVD at 720 x 1280 resolution the rule matches
@media (aspect-ratio: 45/74)
but not@media (aspect-ratio: 9/16)
as I expected.