Attack box width changes when mouse hovers over soldier

Bug #1828711 reported by GunChleoc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Undecided
Unassigned

Bug Description

When the mouse hovers over a soldier and the tooltip text is wider than the inner window, the window width changes.

We didn't notice before because the English text is really short.

Related branches

Revision history for this message
GunChleoc (gunchleoc) wrote :
Revision history for this message
Benedikt Straub (nordfriese) wrote :

Possible solutions:

– Make the window wider (12 soldiers wide should suffice)
– Use a multilinetextarea with a fixed size of two lines and automatic linebreaking
– Have 4 lines and put one attribute on each line
– Translations should use abbreviations like the english text

Which one do we want?

Revision history for this message
GunChleoc (gunchleoc) wrote :

– Make the window wider (12 soldiers wide should suffice)

I would be OK with that, but it could break again with (future) translations that we haven't tested for.

– Use a multilinetextarea with a fixed size of two lines and automatic linebreaking

This is probably the best solution. Calculating the width from the soldier icons would suffice here and setting the MultilineEditbox to kNoScrolling will do the trick, no need to hard-code 2 lines. Translators can use   to avoid line breaks in the wrong places - we should add a translator's comment to give them a hint.

– Have 4 lines and put one attribute on each line

Also possible, but it would make the box use more vertical space than needed.

– Translations should use abbreviations like the english text

Impossible. My translation IS using abbreviations, and making it any shorter will make it completely unintelligible. Not all languages can be abbreviated as radically as English - I need at least 1 complete syllable ;)

Changed in widelands:
assignee: nobody → Benedikt Straub (nordfriese)
status: New → In Progress
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
assignee: Benedikt Straub (nordfriese) → nobody
Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.