fix(MarkupView): set to VERTICAL & vexpand RichLabels

fix: #67 again

Setting MarkupView to HORIZONTAL breaks wrapping. Vexpanding RichLabels fixes the issue shown in the linked issue while keeping wrapping.
This commit is contained in:
Evangelos Paterakis 2023-02-09 03:10:38 +02:00
parent 23a0c5df7c
commit 18e66885ee
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class Tooth.Widgets.MarkupView : Box {
}
construct {
orientation = Orientation.HORIZONTAL;
orientation = Orientation.VERTICAL;
spacing = 12;
}
@ -77,7 +77,8 @@ public class Tooth.Widgets.MarkupView : Box {
var label = new RichLabel (current_chunk) {
visible = true,
// markup = MarkupPolicy.TRUST,
selectable = _selectable
selectable = _selectable,
vexpand = true
};
prepend (label);
}