walkermatt / ol-layerswitcher

Layer control for OpenLayers
MIT License
384 stars 176 forks source link

Vertical scrollbar, android and..........much layers. #466

Closed AllroadsNL closed 3 years ago

AllroadsNL commented 3 years ago

Using in css, bottom: or max-height: with px and 100%

/* Set the maximum height of the layerswitcher when it's shown */ .layer-switcher.shown { bottem: 3em; /*max-height:600px;*/ } I did see a earlier issue.

18

On android it is not possible to scroll down to the basemaps. max-height:600px example image, on the lowest position. For android I should set a less px height to get it working. Screenshot_20210721-162035

map layers website When I set max-height to 2000px, I have the same problem on my pc screen. Can not scroll down to the basemaps. If the max-height fit in the screen, there is no problem. When setting it for android, under 200 px, this does not look good on pc screen.

PC screen max-height:90%, fit the screen, but can not scroll down to basemaps.

AllroadsNL commented 3 years ago

After some tries, now it is working.

I do not understand the problem.

max-height: 600px;