@@ -7,7 +7,7 @@ use crate::{
77 graphics:: FontRequest ,
88 items:: TextStrokeStyle ,
99 lengths:: LogicalLength ,
10- textlayout:: { TextHorizontalAlignment , TextVerticalAlignment , TextWrap , TextOverflow } ,
10+ textlayout:: { TextHorizontalAlignment , TextOverflow , TextVerticalAlignment , TextWrap } ,
1111} ;
1212use i_slint_common:: sharedfontique;
1313
@@ -38,7 +38,7 @@ pub struct LayoutOptions {
3838 pub selection : Option < std:: ops:: Range < usize > > ,
3939 pub font_request : Option < FontRequest > ,
4040 pub text_wrap : TextWrap ,
41- pub text_overflow : TextOverflow
41+ pub text_overflow : TextOverflow ,
4242}
4343
4444impl Default for LayoutOptions {
@@ -52,7 +52,7 @@ impl Default for LayoutOptions {
5252 selection : None ,
5353 font_request : None ,
5454 text_wrap : TextWrap :: WordWrap ,
55- text_overflow : TextOverflow :: Clip
55+ text_overflow : TextOverflow :: Clip ,
5656 }
5757 }
5858}
@@ -97,7 +97,7 @@ pub fn layout(text: &str, scale_factor: f32, options: LayoutOptions) -> Layout {
9797 if options. text_overflow == TextOverflow :: Elide {
9898 todo ! ( ) ;
9999 }
100-
100+
101101 builder. push_default ( parley:: StyleProperty :: Brush ( Brush {
102102 stroke : options. stroke ,
103103 ..Default :: default ( )
0 commit comments