Occlude only modal and not the space around it used to center it
This commit is contained in:
parent
91a0923fc4
commit
2b67bb27cf
1 changed files with 10 additions and 16 deletions
|
@ -139,21 +139,15 @@ impl Render for ModalLayer {
|
||||||
return div();
|
return div();
|
||||||
};
|
};
|
||||||
|
|
||||||
div()
|
div().absolute().size_full().top_0().left_0().child(
|
||||||
.occlude()
|
v_flex()
|
||||||
.absolute()
|
.h(px(0.0))
|
||||||
.size_full()
|
.top_20()
|
||||||
.top_0()
|
.flex()
|
||||||
.left_0()
|
.flex_col()
|
||||||
.child(
|
.items_center()
|
||||||
v_flex()
|
.track_focus(&active_modal.focus_handle)
|
||||||
.h(px(0.0))
|
.child(h_flex().occlude().child(active_modal.modal.view())),
|
||||||
.top_20()
|
)
|
||||||
.flex()
|
|
||||||
.flex_col()
|
|
||||||
.items_center()
|
|
||||||
.track_focus(&active_modal.focus_handle)
|
|
||||||
.child(h_flex().child(active_modal.modal.view())),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue