Fix WebUI crash in edge case when media display size causes scroll
Fixes #1406remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
e5dbdebc31
commit
d4b65193c7
|
@ -287,10 +287,8 @@ class MediaGallery extends React.PureComponent {
|
|||
}
|
||||
|
||||
componentDidUpdate (prevProps) {
|
||||
if (this.node && this.node.offsetWidth && this.node.offsetWidth != this.state.width) {
|
||||
this.setState({
|
||||
width: this.node.offsetWidth,
|
||||
});
|
||||
if (this.node) {
|
||||
this.handleResize();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue