-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix minimap show/hide #1103
Fix minimap show/hide #1103
Conversation
There is a menu item to hide the minimap. It was only toggling the minimap without changing the layout of the panel at the bottom right, resulting in an almost-empty widget still hiding as much of the map as before. Now, hiding the minimap properly reduces the size of the bottom right widget, at the expense of also hiding the zoom buttons located there. The manual layout (i.e. without using QLayout) causes some trouble when widgets are hidden or restored. Eventually I chose to post a LayoutRequest event by hand to the widget doing the layout. If one day we write a proper QLayout for the overlay widgets, we can remove this. Closes longturn#1096.
When the minimap is hidden then shown, the three tool buttons on its right have a negative height for one frame. This causes QPainter to be unhappy and complain loudly. Silence most of the warnings by not attempting to render SVG icons with negative sizes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you dont lock the interface, it resets the position of the chat widget to the default position. That is jarring, and isnt the expected behaviour. The minimap should hide/show without involving the other widgets.
Fixed. Yes, I used a |
f8d63b3
to
9e08fec
Compare
9e08fec
to
c82a421
Compare
Hmm! MacOS build failed!didn't expect that! 😄 |
Launched a new attempt |
Mac build works now. Merging. |
Closes #1096.
I chose not to remove the option (for now), instead implementing a more or less sensible behavior.