Skip to content

Commit 127702b

Browse files
pdanpdanrstoenescu
authored andcommitted
Fix QPopover hide condition in reposition (quasarframework#2045)
close quasarframework#2044
1 parent 55de4f0 commit 127702b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev/components/components/context-menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</p>
3131

3232
<div
33-
style="height: 300px; margin-top: 40px;"
33+
style="height: 600px; margin-top: 40px;"
3434
class="bg-secondary text-white row items-stretch"
3535
>
3636
<div class="col-6 flex flex-center" v-for="n in 4" :key="n" >

src/components/popover/QPopover.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ export default {
130130
this.$el.style.minWidth = width(this.anchorEl) + 'px'
131131
}
132132
const
133-
{ top } = this.anchorEl.getBoundingClientRect(),
133+
{ top, bottom } = this.anchorEl.getBoundingClientRect(),
134134
{ height } = window.innerHeight
135135

136-
if (top < 0 || top > height) {
136+
if (bottom < 0 || top > height) {
137137
return this.hide()
138138
}
139139

0 commit comments

Comments
 (0)