mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-10 06:36:21 +02:00
Tweaked the offset for the tooltip so that it is next to the element it is tipping
This commit is contained in:
parent
922bb0f402
commit
ca75d93434
@ -270,7 +270,7 @@ module.exports = React.createClass({
|
||||
_repositionTooltip: function(e) {
|
||||
if (this.tooltip && this.tooltip.parentElement) {
|
||||
var scroll = ReactDOM.findDOMNode(this);
|
||||
this.tooltip.style.top = (70 + scroll.parentElement.offsetTop + this.tooltip.parentElement.offsetTop - this._getScrollNode().scrollTop) + "px";
|
||||
this.tooltip.style.top = (3 + scroll.parentElement.offsetTop + this.tooltip.parentElement.offsetTop - this._getScrollNode().scrollTop) + "px";
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user