Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
This repository was archived by the owner on May 5, 2025. It is now read-only.

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

@trendspotter

Description

@trendspotter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions