mirror of https://github.com/wayvr-org/wayvr.git
parent
44848a7e23
commit
153b77e98c
|
|
@ -158,7 +158,11 @@ impl WidgetObj for WidgetLabel {
|
||||||
(run.line_w.max(width), total_lines + 1)
|
(run.line_w.max(width), total_lines + 1)
|
||||||
});
|
});
|
||||||
let height = total_lines as f32 * buffer.metrics().line_height;
|
let height = total_lines as f32 * buffer.metrics().line_height;
|
||||||
taffy::Size { width, height }
|
|
||||||
|
taffy::Size {
|
||||||
|
width: width + 1.0, /* f32 aliasing fix */
|
||||||
|
height,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_id(&self) -> WidgetID {
|
fn get_id(&self) -> WidgetID {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue