-
Notifications
You must be signed in to change notification settings - Fork 466
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
ol.control.Bar Scrollable on small Mobile devices #1078
Comments
It's just a matter of CSS... .ol-control.ol-bar .ol-option-bar .ol-control {
display: block;
} |
Thanks, but this does not work on my side. Can you please share a sandbox link which shows how this is done? Please note. I am not talking about the sub-bar being cut off. I am talking about buttons in the main bar. Have for example a horizontal bar with a lot of buttons. Now on the mobile device the user must then be able to drag the bar (left/right) to see the rest of the buttons (overflow-x) And when the bar is vertically, the same: User drag the bar up down to see the rest of the buttons (overflow-y) |
Ok, in the codepen it also shows outside the screen and I am unable to scroll horizontally. Test your codepen with the following code (Note that I added a lot of ZoomToExtent Control Buttons just to mimic the problem of overflowing - The same can be tested with a vertical bar where the user needs to scroll up/down):
|
I got it fixed by changing to:
|
This actually is the correct way:
|
How can I make the ol.control.Bar scrollable (Horizontal or Vertical) if on small screens, like mobile devices?
The text was updated successfully, but these errors were encountered: