1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-28 09:24:05 +03:00

rename onWidgetLoad to onHeightChanged

as it's easy to confuse it with room widgets, but has nothing to do with it.
This commit is contained in:
Bruno Windels
2019-03-06 12:27:16 +01:00
parent 4a1b723ab5
commit 4e382b1dd9
11 changed files with 34 additions and 34 deletions

View File

@@ -1186,7 +1186,7 @@ module.exports = React.createClass({
// once dynamic content in the search results load, make the scrollPanel check
// the scroll offsets.
const onWidgetLoad = () => {
const onHeightChanged = () => {
const scrollPanel = this.refs.searchResultsPanel;
if (scrollPanel) {
scrollPanel.checkScroll();
@@ -1231,7 +1231,7 @@ module.exports = React.createClass({
searchHighlights={this.state.searchHighlights}
resultLink={resultLink}
permalinkCreator={this.state.permalinkCreator}
onWidgetLoad={onWidgetLoad} />);
onHeightChanged={onHeightChanged} />);
}
return ret;
},