fix(nav-drawer): shadow extends all the way vertically

df5cf8a1fc caused a regression
making the soft keyboard auto close. This patch extends the shadow
all the way vertically without triggering the regression

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-10-22 16:40:22 -04:00
parent dbba2a5271
commit db9005e403

View File

@@ -302,6 +302,8 @@ impl Chrome {
// if the soft keyboard is open, shrink the chrome contents
let mut action: Option<ChromePanelAction> = None;
// build a strip to carve out the soft keyboard inset
let prev_spacing = ui.spacing().item_spacing;
ui.spacing_mut().item_spacing.y = 0.0;
StripBuilder::new(ui)
.size(Size::remainder())
.size(Size::exact(keyboard_height))
@@ -319,6 +321,7 @@ impl Chrome {
}
});
});
ui.spacing_mut().item_spacing = prev_spacing;
// hovering virtual keyboard
if virtual_keyboard {