Skip to content

Commit 476b639

Browse files
committed
make clamping default for overflow
1 parent 10b0a17 commit 476b639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anathema-default-widgets/src/overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl Widget for Overflow {
163163
let mut pos = ctx.pos;
164164

165165
// If the value is clamped, update the offset
166-
match attributes.get_as::<bool>(CLAMP).unwrap_or_default() {
166+
match attributes.get_as::<bool>(CLAMP).unwrap_or(true) {
167167
false => (),
168168
true => self.clamp(self.inner_size, ctx.inner_size),
169169
}

0 commit comments

Comments
 (0)