mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
fix tooltip offset
This commit is contained in:
parent
19770563f4
commit
4fb31662e1
1 changed files with 1 additions and 1 deletions
|
@ -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 = (scroll.parentElement.offsetTop + this.tooltip.parentElement.offsetTop - this._getScrollNode().scrollTop) + "px";
|
||||
this.tooltip.style.top = (70 + scroll.parentElement.offsetTop + this.tooltip.parentElement.offsetTop - this._getScrollNode().scrollTop) + "px";
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue