File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1064,6 +1064,30 @@ impl Overflow {
1064
1064
}
1065
1065
}
1066
1066
1067
+ /// Hide overflowing items on both axes by influencing layout and then clipping
1068
+ pub const fn hidden ( ) -> Self {
1069
+ Self {
1070
+ x : OverflowAxis :: Hidden ,
1071
+ y : OverflowAxis :: Hidden ,
1072
+ }
1073
+ }
1074
+
1075
+ /// Hide overflowing items on the x axis by influencing layout and then clipping
1076
+ pub const fn hidden_x ( ) -> Self {
1077
+ Self {
1078
+ x : OverflowAxis :: Hidden ,
1079
+ y : OverflowAxis :: Visible ,
1080
+ }
1081
+ }
1082
+
1083
+ /// Hide overflowing items on the y axis by influencing layout and then clipping
1084
+ pub const fn hidden_y ( ) -> Self {
1085
+ Self {
1086
+ x : OverflowAxis :: Visible ,
1087
+ y : OverflowAxis :: Hidden ,
1088
+ }
1089
+ }
1090
+
1067
1091
/// Overflow is visible on both axes
1068
1092
pub const fn is_visible ( & self ) -> bool {
1069
1093
self . x . is_visible ( ) && self . y . is_visible ( )
You can’t perform that action at this time.
0 commit comments