Skip to content

Initial scaling issues to window size for maps and graphs #306

@atverm

Description

@atverm

Preview graphs and maps (like in data portal tab for map) are scaled initially according to canvas width and then canvasses usually are higher than the visible window so partly not visible. When browser window is then scaled, only width is taken into account to scale canvas, ratio w/h stays the same. As soon as browser window is scrolled vertically until graph/map canvas is fully visible, window resize changes to take both width and height into account and ratio w/h is modified. It would be preferable to change canvas w/h ratio to accomodate the window size already at initial draw, unless this would give a ridiculous w/h ratio, for example an absolute ratio bigger than 3, then set it to a reasonable 2.5.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions