Refactor so that the tooltip positional tweaks can be done in CSS rather than passed in as parameters

pull/21833/head
wmwragg 2016-09-09 06:57:30 +01:00
parent d1974a75fd
commit 840bfe84c1
1 changed files with 2 additions and 3 deletions

View File

@ -246,10 +246,9 @@ module.exports = React.createClass({
} else {
label = <EmojiText element="div" title={ name } className={ nameClasses }>{name}</EmojiText>;
}
}
else if (this.state.hover) {
} else if (this.state.hover) {
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
tooltip = <RoomTooltip room={this.props.room} top={4} left={-14} />;
tooltip = <RoomTooltip className="mx_RoomTile_tooltip" room={this.props.room} />;
}
var incomingCallBox;