Merge pull request #4708 from matrix-org/dbkr/bind_tooltip_render

Fix exceptions from Tooltip
This commit is contained in:
David Baker 2020-06-04 19:29:56 +01:00 committed by GitHub
commit ddc9c67a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ export default class Tooltip extends React.Component<IProps> {
return style;
}
private renderTooltip() {
private renderTooltip = () => {
// Add the parent's position to the tooltips, so it's correctly
// positioned, also taking into account any window zoom
// NOTE: The additional 6 pixels for the left position, is to take account of the