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

Behaviour of "hide minimap" is broken #1096

Closed
psampathkumar opened this issue Jul 9, 2022 · 2 comments · Fixed by #1103
Closed

Behaviour of "hide minimap" is broken #1096

psampathkumar opened this issue Jul 9, 2022 · 2 comments · Fixed by #1103
Labels
bug Something isn't working gui This issue requires changes to the user interface

Comments

@psampathkumar
Copy link
Contributor

Describe the bug
Using the hide minimap option from the menu or "ctrl+M" must just hide the minimap, but it causes unintended behaviour

To Reproduce
Steps to reproduce the behavior:

  1. Hide minimap from view menu, or Ctrl + M
  2. Notice, that the widget is still left in the bottom as a blank space
  3. It also disables moving widgets around the screen . You cant move unit-actions, chat window or any widgets around

Expected behavior
Just the minimap disappears along with the empty space, and the zoom buttons stay above the turn done button. It shouldnt affect the behaviour of widgets

Screenshots
image
Notice that the move handle in the corner of widgets have disappeared.

Platform and version (please complete the following information):

  • OS:Linux
  • Freeciv21 version:master
@psampathkumar psampathkumar added bug Something isn't working gui This issue requires changes to the user interface labels Jul 9, 2022
@lmoureaux
Copy link
Contributor

I would be in favor of removing the option altogether.

@psampathkumar
Copy link
Contributor Author

I'm ambivalent about this. It is indeed convenient to have the option, but tbh, I dont use it at all in normal usage.

lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Jul 9, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this issue Jul 9, 2022
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.
psampathkumar pushed a commit that referenced this issue Jul 11, 2022
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 #1096.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui This issue requires changes to the user interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants