Closed silvester-pari closed 3 years ago
When dynamically changing the positioning of vl-overlay, it is set to true. So when displaying the scope, initially it shows correct (for example "bottom-left"), but on change it displays "true" (and therefore resets positioning to default):
positioning
vl-overlay
true
It might be because of the same name for parameter and boolean check in https://github.com/ghettovoice/vuelayers/blob/master/src/components/overlay/overlay.vue#L302 ? I think here, on change this.currentPositioning is always set to true?
this.currentPositioning
setPositioning (positioning) { positioning = !!positioning if (positioning !== this.currentPositioning) { this.currentPositioning = positioning } if (this.$overlay && positioning !== this.$overlay.getPositioning()) { this.$overlay.setPositioning(positioning) } },
When dynamically changing the![image](https://user-images.githubusercontent.com/26576876/113427493-68c52600-93d5-11eb-8de5-90a68ac729c0.png)
positioning
ofvl-overlay
, it is set totrue
. So when displaying the scope, initially it shows correct (for example "bottom-left"), but on change it displays "true" (and therefore resets positioning to default):It might be because of the same name for parameter and boolean check in https://github.com/ghettovoice/vuelayers/blob/master/src/components/overlay/overlay.vue#L302 ? I think here, on change
this.currentPositioning
is always set totrue
?