mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
76c4673944
Assume a vbox with 2 wrapping labels saying Hello World Hi Ho being measured for their minimum width for 3 rows of text. This should be layouted like Hello World Hi Ho and measured accordingly. However, previously this was layouted as Hello World Hi Ho with 1.5 lines being assigned to both labels. That will obviously not compute the above wrapping which clearly results in a smaller min width. A reftest testing exactly this was included.
31 lines
931 B
XML
31 lines
931 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface domain="gtk40">
|
|
<object class="GtkWindow">
|
|
<property name="decorated">0</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">1</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Hello World</property>
|
|
<property name="wrap">1</property>
|
|
<property name="max-width-chars">1</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Hi Ho</property>
|
|
<property name="wrap">1</property>
|
|
<property name="max-width-chars">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|
|
|