mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-02-23 17:34:25 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user