Web: Components: delete useless

This commit is contained in:
Viktor Fomin 2021-10-29 13:38:52 +03:00
parent 34e163aac4
commit 6edc4c23fc

View File

@ -14,16 +14,6 @@ class Tooltip extends Component {
ReactTooltip.rebuild();
}
overridePosition = ({ left, top }) => {
const d = document.documentElement;
left = Math.min(d.clientWidth - 340, left);
top = Math.min(d.clientHeight - 0, top);
left = Math.max(0, left);
top = Math.max(0, top);
//console.log("left:", left, "top:", top);
return { top, left };
};
render() {
const {
effect,
@ -68,7 +58,6 @@ class Tooltip extends Component {
afterShow={afterShow}
afterHide={afterHide}
isCapture={true}
//overridePosition={this.overridePosition}
>
{children}
</ReactTooltip>