Opened 2 years ago
Last modified 2 years ago
#22346 new enhancement
ToggleDialog: fix maximum height
Reported by: | mikeho | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | toggle dialog maximum height | Cc: |
Description
The height of the windows changes when windows are shown/hidden. JOSM tries to distribute them (evenly). Some windows take up space in height that they don't need, other windows (e.g. Tags / Membership) get too little space in height.
I suggest to fix them by button in two ways:
1) A button for a height such that beyond the minimum required height is not enlarged to show all content.
2) Another button to fix the maximum height - smaller than above as actual shown on screen.
The attached image may clarify this idea.
Attachments (2)
Change History (5)
by , 2 years ago
Attachment: | min height.PNG added |
---|
comment:1 by , 2 years ago
Type: | task → enhancement |
---|
comment:2 by , 2 years ago
Keywords: | toggle dialog added; Window removed |
---|---|
Summary: | Window: fix maximum height → ToggleDialog: fix maximum height |
comment:3 by , 2 years ago
We will probably have to override getMaximumSize
in the various subclasses. With that said, the pane is somewhat finicky.
Something that should theoretically work doesn't (the minimum size is a problem). My minimal patch does not work correctly, and I'd have to figure out why it isn't working.
by , 2 years ago
Attachment: | 22346.patch added |
---|
Needs work (UI doesn't work properly when 2 components are maximized, UI does not work properly when multiple dialogs are not collapsed)
window min height illustration