Skip to content

Commit

Permalink
Set floated screen width
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Dec 16, 2024
1 parent d097de9 commit 06cf155
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,13 @@ export default {
},
computedStyle() {
let style = {}
// note down what the width was in case it was set to AUTO, because absolute positioning will lose that
const origWidth = this.width || this.$refs.bar?.clientWidth
if (this.floated) {
style['position'] = 'absolute'
style['top'] = this.top + 'px'
style['left'] = this.left + 'px'
style['width'] = origWidth + 'px'
}
return style
},
Expand Down

0 comments on commit 06cf155

Please sign in to comment.