origo-map / origo

Origo
Other
48 stars 53 forks source link

The toolbar needs to know the size of the browser #2021

Open asemoller opened 3 months ago

asemoller commented 3 months ago

Is your feature request related to a problem? Please describe. If a user have many tools expanded at the same time, some icons will not appear in the browser, the toolbar expand without knowing it hit the bottom of the browser.

The toolbar should sense the size of the browser and do something when it hits the bottom, like the footer and the legend. I'm not really sure what the best solution would be, maybe a scrollbar, maybe a new bar on the right, but I'm not convinced by either. All I know is that the user should be able to see all available tools in the toolbar.

Even if we move the measure tool and the selection tool to the bottom just like the draw and editor control, as we mentioned in issue #1409, I believe the problem remains since many controls can be placed in the left toolbar. Users can have different resolutions, zoom settings and sizes of screens, browsers and devices and so on. This is something that should work much better than it does today.

toolbar_expanded

tonnyandersson commented 3 months ago

IMO, it would make sense to make the toolbar scrollable. And open some tools - mainly tools that are normally used over a longer period of time and tools that require frequent change of bits - in the bottom toolbar. The draw and editor controls, for example. I get your point about different screen sizes and stuff, and that needs to be handled as well. I don't think it's a good idea to open up a new toolbar on the right, though, because of menus an legends and stuff.

Perhaps there are more creative thinking-outside-the-box kind of people out there with better ideas?

jokd commented 1 week ago

IMO, it would make sense to make the toolbar scrollable. And open some tools - mainly tools that are normally used over a longer period of time and tools that require frequent change of bits - in the bottom toolbar. The draw and editor controls, for example. I get your point about different screen sizes and stuff, and that needs to be handled as well. I don't think it's a good idea to open up a new toolbar on the right, though, because of menus an legends and stuff.

Perhaps there are more creative thinking-outside-the-box kind of people out there with better ideas?

We made the left menu scrollable with some css but then the tooltips for the buttons stopped working. I can have another look into this unless somebody else have another idea.