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

Floating map legend doesn't hide or hides too well on big displays #1460

Open
trendspotter opened this issue Feb 15, 2018 · 0 comments
Open

Comments

@trendspotter
Copy link
Contributor

trendspotter commented Feb 15, 2018

This can't hardly be called an issue, as it's really minor cosmetic thing, but since I've mentioned it already, here goes...

When having settings.gis.legend = "float" and larger resolutions (mine is 2560 x 1440), the floating legend behaves weirdly when the map is on fullscreen. With developers console enabled (=reduced viewport height, up until window.innerHeight <= 1190) it floats near to the right border, but it's way too far so it cannot be hidden using the » icon, as it just slides slightly to the right but doesn't hide behind the border like it does on small resolutions. But when the window.innerHeight > 1190 the legend jumps to the right out of the window boundary.

I have been able to reproduce the same behavior on both Chrome 64 and Firefox 48 (haven't tried any other)

window.innerHeight == 1190 and $('.map_legend_div').offset() == { top: 454, left: 2345 }
image

window.innerHeight == 1191 and $('.map_legend_div').offset() == { top: 803, left: 2735 }
image

@trendspotter trendspotter changed the title Floating menu doesn't hide or hides too well on big displays Floating map legend doesn't hide or hides too well on big displays Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants