mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 15:01:23 +00:00
5c9ae28937
For size -1 in the opposite orientation, GtkBoxLayout used to measure the children based on their min size in the box's orientation instead of -1. That wasn't really intended, but was a side effect of how the sizing code did (not) distribute extra size above the minimum size. This is clearly not what we want. What we want is measuring the orientation as is for size -1. Then we want to just take the maximum of all children and use that. A reftest is incldued that ensures a vbox wraps a label just like an hbox does.
19 lines
531 B
XML
19 lines
531 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow">
|
|
<property name="decorated">0</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">horizontal</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>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|