mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
fixed account tab underline when resize window
This commit is contained in:
parent
d6349356c8
commit
34d3e885b8
@ -22,10 +22,21 @@ class Indicator extends Component {
|
||||
left: 0
|
||||
},
|
||||
}
|
||||
|
||||
this.reposition = this.reposition.bind(this);
|
||||
}
|
||||
|
||||
handleResize() {
|
||||
this.reposition();
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.reposition();
|
||||
window.addEventListener('resize', this.reposition, false);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener('resize', this.reposition, false);
|
||||
}
|
||||
|
||||
componentDidUpdate(newProps: any) {
|
||||
@ -47,7 +58,6 @@ class Indicator extends Component {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user