Fix popover positioning regression
This commit is contained in:
parent
0ed6f24664
commit
9930ea2e13
|
|
@ -10,8 +10,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@use "sass:color";
|
|
||||||
|
|
||||||
.popover {
|
.popover {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 0;
|
width: 0;
|
||||||
|
|
@ -128,7 +126,7 @@ export default defineComponent({
|
||||||
updated() {
|
updated() {
|
||||||
const popoverContainer = this.$refs.popoverContainer as HTMLElement;
|
const popoverContainer = this.$refs.popoverContainer as HTMLElement;
|
||||||
const popoverContent = this.$refs.popoverContent as HTMLElement;
|
const popoverContent = this.$refs.popoverContent as HTMLElement;
|
||||||
const workspace = document.querySelector(".workspace");
|
const workspace = document.querySelector(".workspace-row");
|
||||||
|
|
||||||
if (popoverContent && workspace) {
|
if (popoverContent && workspace) {
|
||||||
const workspaceBounds = workspace.getBoundingClientRect();
|
const workspaceBounds = workspace.getBoundingClientRect();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue