Follow-up Comment #1, bug #21364 (project wesnoth):
In more detail: the textbox determines the width of the text column based on
its previous contents. You can easily test this by switching between some maps
a few times and observing when the textbox renders the scrollbar over the text
or leaves an unreasonably wide gap at the line's end.
The bug is in the widget's implementation: the text rendering code
(gui::textbox::add_text_line) should know if a scrollbar will be displayed to
properly place line breaks. However, that's going to be decided only later,
based on the text column's height. A snake biting its own tail.
Doubling the textbox::set_text call in create::set_description eliminates the
issue but it'd be better to fix the widget itself.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21364>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs