Fix text wrapping when a child of a v_stack()
This commit is contained in:
parent
8837045abb
commit
7172ce37b1
2 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
use gpui::{div, white, Div, ParentComponent, Render, Styled, View, VisualContext, WindowContext};
|
||||
use ui::v_stack;
|
||||
|
||||
pub struct TextStory;
|
||||
|
||||
|
@ -12,7 +13,7 @@ impl Render for TextStory {
|
|||
type Element = Div<Self>;
|
||||
|
||||
fn render(&mut self, cx: &mut gpui::ViewContext<Self>) -> Self::Element {
|
||||
div().size_full().bg(white()).child(concat!(
|
||||
v_stack().w_96().bg(white()).child(concat!(
|
||||
"The quick brown fox jumps over the lazy dog. ",
|
||||
"Meanwhile, the lazy dog decided it was time for a change. ",
|
||||
"He started daily workout routines, ate healthier and became the fastest dog in town.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue