We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b0a17 commit 476b639Copy full SHA for 476b639
1 file changed
anathema-default-widgets/src/overflow.rs
@@ -163,7 +163,7 @@ impl Widget for Overflow {
163
let mut pos = ctx.pos;
164
165
// If the value is clamped, update the offset
166
- match attributes.get_as::<bool>(CLAMP).unwrap_or_default() {
+ match attributes.get_as::<bool>(CLAMP).unwrap_or(true) {
167
false => (),
168
true => self.clamp(self.inner_size, ctx.inner_size),
169
}
0 commit comments