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

Better Support On Landscape Orientation #310

Open
kttary opened this issue Jul 6, 2022 · 1 comment
Open

Better Support On Landscape Orientation #310

kttary opened this issue Jul 6, 2022 · 1 comment

Comments

@kttary
Copy link

kttary commented Jul 6, 2022

Is it possible to auto shrink the width of the the widget when using landscape orientation? And even more add resize handler to collapse the widget when we are using medium or larger screen? I attached some image for better description:

Landscape orientation on small secreen, the width of widget shrink to the left without resize handler at the bottom. There is enough space to interact with maps:
landscape_small_screen

On medium or large screen, the widget shrink to the lefft with resize handler at the bottom so we can resize in if we need more space to interact with the map:
landscape_medium_or_big_screen

The widget is collapsible on medium or large screen:
Landscape_collapsed

Currently it consume almost all screen on desktop application:
image

@kttary kttary changed the title Better Supoort On Landscape Orientation Better Support On Landscape Orientation Jul 6, 2022
@qixotic
Copy link

qixotic commented Aug 6, 2022

Can't you already change the width of the sliding panel effectively by playing with the margin: parameter? I've got a demo in 4a7b51a (although the general idea should work regardless of the original PR fix). And to collapse up, conditionally set slideDirection: SlideDirection.DOWN

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

2 participants