add comment about positioning the format bar
This commit is contained in:
parent
d2949babcd
commit
92c0c1a4e2
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ export default class BasicMessageEditor extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
this._formatBarRef.style.left = `${selectionRect.left - leftOffset}px`;
|
this._formatBarRef.style.left = `${selectionRect.left - leftOffset}px`;
|
||||||
|
// 12 is half the height of the bar (e.g. to center it) and 16 is an offset that felt ok.
|
||||||
this._formatBarRef.style.top = `${selectionRect.top - topOffset - 16 - 12}px`;
|
this._formatBarRef.style.top = `${selectionRect.top - topOffset - 16 - 12}px`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue