Project

General

Profile

Bug #3812

Wrong multiline tooltips width when word-wrapping is enabled

Added by Andrei Kortunov 9 months ago. Updated 14 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
GUI
Target version:
Start date:
03/28/2017
% Done:

0%

Reproducibility:
Always
Operating system:
Other
Severity:
Normal

Description

In vanilla game multiline tooltips have a minimal and maximal width.
When widget starts word-wrapping, it selects width between minimal and maximal to minimize an empty space.

In OpenMW multiline tooltips have only an initial width.
If widget property "WordWrap" is true, tooltip keeps the initial width and grows only to height.

Vanilla_tooltip.png View - Vanilla game class tooltip (crusader) (186 KB) Andrei Kortunov, 03/28/2017 07:46 AM

Openmw_tooltip.png View - OpenMW class tooltip (warrior) (151 KB) Andrei Kortunov, 03/28/2017 07:46 AM

History

#1 Updated by Alexei Dobrohotov 3 months ago

  • Status changed from New to Confirmed

#2 Updated by Alexei Dobrohotov 3 months ago

  • Target version set to openmw-1.0
  • Operating system changed from Linux to Other

#3 Updated by Andrei Kortunov 14 days ago

Actually, we need the ability to shrink a tooltip width to the actual text size, and make this ability configurable (not all tooltips are affected).
Probably we can handle it as a parameter in the AutoSizedEditBox.

#4 Updated by Andrei Kortunov 14 days ago

Actually, we need the ability to shrink a tooltip width to the actual text size, and make this ability configurable (not all tooltips are affected).
Probably we can handle it as a parameter in the AutoSizedEditBox.

For now, AutoSizedEditBox width is static, according to our Wiki.

#5 Updated by scrawl . 14 days ago

Probably we can handle it as a parameter in the AutoSizedEditBox.

Yes, that should work. I imagine we would need another parameter to store the original width, for example

<Property key="AdjustWidth" value="true"/>
<Property key="MaxWidth" value="500"/>

Also available in: Atom PDF