You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Appease the linter
This commit is contained in:
@@ -103,7 +103,7 @@ export default class Tooltip extends React.Component<IProps> {
|
|||||||
const right = window.innerWidth - parentBox.right - window.pageXOffset - 16;
|
const right = window.innerWidth - parentBox.right - window.pageXOffset - 16;
|
||||||
const left = parentBox.right + window.pageXOffset + 6;
|
const left = parentBox.right + window.pageXOffset + 6;
|
||||||
const horizontalCenter = parentBox.right - window.pageXOffset - (parentBox.width / 2);
|
const horizontalCenter = parentBox.right - window.pageXOffset - (parentBox.width / 2);
|
||||||
switch(this.props.alignment) {
|
switch (this.props.alignment) {
|
||||||
case Alignment.Natural:
|
case Alignment.Natural:
|
||||||
if (parentBox.right > window.innerWidth / 2) {
|
if (parentBox.right > window.innerWidth / 2) {
|
||||||
style.right = right;
|
style.right = right;
|
||||||
|
|||||||
Reference in New Issue
Block a user