more fixes to chat popovers
This commit is contained in:
parent
fa398b5e7a
commit
832d7f2354
|
@ -44,7 +44,7 @@
|
||||||
<Popover
|
<Popover
|
||||||
trigger="click"
|
trigger="click"
|
||||||
placement="top"
|
placement="top"
|
||||||
:bound-to-selector="isCurrentUser ? '' : '.scrollable-message-list'"
|
bound-to-selector=".chat-view-inner"
|
||||||
:bound-to="{ x: 'container' }"
|
:bound-to="{ x: 'container' }"
|
||||||
:margin="popoverMarginStyle"
|
:margin="popoverMarginStyle"
|
||||||
@show="menuOpened = true"
|
@show="menuOpened = true"
|
||||||
|
|
|
@ -129,9 +129,12 @@ const Popover = {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
left: `${Math.round(origin.x + translateX)}px`,
|
left: `${Math.round(origin.x + translateX)}px`,
|
||||||
top: `${Math.round(origin.y + translateY)}px`,
|
top: `${Math.round(origin.y + translateY)}px`,
|
||||||
maxWidth: `${parentScreenBox ? Math.round(parentScreenBox.width) : 0}px`,
|
|
||||||
position: 'fixed'
|
position: 'fixed'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parentScreenBox) {
|
||||||
|
this.styles.maxWidth = `${Math.round(parentScreenBox.width)}px`
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showPopover () {
|
showPopover () {
|
||||||
const wasHidden = this.hidden
|
const wasHidden = this.hidden
|
||||||
|
|
Loading…
Reference in New Issue