fix: modal shadow padding
This commit is contained in:
parent
58802c4d0b
commit
7fb19619cf
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ impl Modal {
|
||||||
if View::is_desktop() {
|
if View::is_desktop() {
|
||||||
rect = rect.shrink(Root::WINDOW_FRAME_MARGIN - 0.5);
|
rect = rect.shrink(Root::WINDOW_FRAME_MARGIN - 0.5);
|
||||||
rect.min += egui::vec2(0.0, Root::WINDOW_TITLE_HEIGHT + 0.5);
|
rect.min += egui::vec2(0.0, Root::WINDOW_TITLE_HEIGHT + 0.5);
|
||||||
|
rect.max.x += 0.5;
|
||||||
}
|
}
|
||||||
egui::Window::new("modal_bg_window")
|
egui::Window::new("modal_bg_window")
|
||||||
.title_bar(false)
|
.title_bar(false)
|
||||||
|
|
Loading…
Reference in a new issue