mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
Ensure scroll bar state is updated on content change
This commit is contained in:
parent
3396f4a46e
commit
d0baf878f5
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ class ScrollRegion extends React.Component
|
|||
attributeFilter: ['style']
|
||||
})
|
||||
|
||||
componentDidUpdate: (prevProps, prevState) =>
|
||||
if (@props.children != prevProps.children)
|
||||
@recomputeDimensions()
|
||||
|
||||
componentWillReceiveProps: (props) =>
|
||||
if @shouldInvalidateScrollbarComponent(props)
|
||||
@_scrollbarComponent = null
|
||||
|
|
Loading…
Reference in a new issue