more fixes to chat popovers

This commit is contained in:
Henry Jameson 2022-06-08 03:18:37 +03:00
commit 832d7f2354
2 changed files with 5 additions and 2 deletions

View file

@ -129,9 +129,12 @@ const Popover = {
opacity: 1,
left: `${Math.round(origin.x + translateX)}px`,
top: `${Math.round(origin.y + translateY)}px`,
maxWidth: `${parentScreenBox ? Math.round(parentScreenBox.width) : 0}px`,
position: 'fixed'
}
if (parentScreenBox) {
this.styles.maxWidth = `${Math.round(parentScreenBox.width)}px`
}
},
showPopover () {
const wasHidden = this.hidden