iris: separate layout allocation from lengths
This commit is contained in:
1 parent
90dffce514
commit
cb5f11d21a
20 files changed
+407
-170
No files matched your search
@@ -33,7 +33,7 @@ impl Composer {
|
||||
/// so the field's focus, selection and in-progress text are untouched.
|
||||
pub fn set_bottom_inset(&self, rsc: &mut impl UiRsc, inset: f32) {
|
||||
if let Some(pad) = rsc.ui_mut().widgets.get_mut(&self.outer_pad) {
|
||||
pad.padding.bottom = Len::abs(inset);
|
||||
pad.padding.bottom = LayoutLen::abs(inset);
|
||||
pad.exact_region = true;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -240,7 +240,7 @@ where
|
||||
BlockFrame::Quote => field
|
||||
.width(rest(1))
|
||||
.pad(Padding {
|
||||
left: dp(QUOTE_BAR_DP + FRAME_PAD_DP),
|
||||
left: dp(QUOTE_BAR_DP + FRAME_PAD_DP).into(),
|
||||
..Padding::ZERO
|
||||
})
|
||||
.background(rect(theme.quote_bar.clone()).width(dp(QUOTE_BAR_DP)))
|
||||
|
||||
Reference in new issue
Block a user