You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix incomingCallBox vertical offset if MatrixToolbar is present
This commit is contained in:
@@ -291,6 +291,13 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// slightly ugly hack to offset if there's a toolbar present.
|
||||||
|
// we really should be calculating our absolute offsets of top by recursing through the DOM
|
||||||
|
toolbar = document.getElementsByClassName("mx_MatrixToolbar")[0];
|
||||||
|
if (toolbar) {
|
||||||
|
top += toolbar.offsetHeight;
|
||||||
|
}
|
||||||
|
|
||||||
incomingCallBox.style.top = top + "px";
|
incomingCallBox.style.top = top + "px";
|
||||||
incomingCallBox.style.left = scroll.offsetLeft + scroll.offsetWidth + "px";
|
incomingCallBox.style.left = scroll.offsetLeft + scroll.offsetWidth + "px";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user