Campaign dialogs should be tall enough to fit images to avoid scrollbars with short text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
Bug 677314 got me thinking. I've noticed that even when the text is short enough to fit within the campaign briefing dialog, a scrollbar is added since the portrait is taller than the dialog window. I think, optimally, the scrollbar should only be shown if the text is to long to show all of it at once.
I looked through the portraits, and as I suspected they share the same size. So if the dialog's height was increased to contain the portrait*, short texts could be shown without scrollbars. I am aware that a few briefings have the headline covering two lines, which of course would cause a scrollbar nonetheless.
*The other solution would of course be to resize the portrait images, though I like the former solution better.
Changed in widelands: | |
assignee: | nobody → SirVer (sirver) |
See example in the attached screenshot. When scrolling down, no additional text is revealed, only the bottom of the portrait.