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:
parent
23a0c5df7c
commit
18e66885ee
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue