Fix issue incorrect positioning with widget loading indicator

by making sure to apply the correct CSS class to the parent
This commit is contained in:
Luke Barnard 2018-05-09 15:48:53 +01:00
parent 76a8b61772
commit 59cbaf67bb

View file

@ -534,7 +534,11 @@ export default class AppTile extends React.Component {
</div> </div>
); );
if (this.state.initialising) { if (this.state.initialising) {
appTileBody = loadingElement; appTileBody = (
<div className={'mx_AppTileBody ' + (this.state.loading ? 'mx_AppLoading' : '')}>
{ loadingElement }
</div>
);
} else if (this.state.hasPermissionToLoad == true) { } else if (this.state.hasPermissionToLoad == true) {
if (this.isMixedContent()) { if (this.isMixedContent()) {
appTileBody = ( appTileBody = (