Reduce Popover pop-up margin (#187)
This commit is contained in:
parent
7286866afd
commit
311abe07fe
1 changed files with 4 additions and 2 deletions
|
|
@ -239,9 +239,11 @@ impl<M: ManagedView> Element for Popover<M> {
|
||||||
.occlude()
|
.occlude()
|
||||||
.when(!no_style, |this| this.popover_style(cx))
|
.when(!no_style, |this| this.popover_style(cx))
|
||||||
.map(|this| match anchor {
|
.map(|this| match anchor {
|
||||||
AnchorCorner::TopLeft | AnchorCorner::TopRight => this.top_2(),
|
AnchorCorner::TopLeft | AnchorCorner::TopRight => {
|
||||||
|
this.top_1p5()
|
||||||
|
}
|
||||||
AnchorCorner::BottomLeft | AnchorCorner::BottomRight => {
|
AnchorCorner::BottomLeft | AnchorCorner::BottomRight => {
|
||||||
this.bottom_2()
|
this.bottom_1p5()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.child(content_view.clone())
|
.child(content_view.clone())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue