mirror of https://github.com/vector-im/riot-web
Merge pull request #5447 from matrix-org/travis/fix-stickerpicker
Fix the stickerpickerpull/21833/head
commit
ced68a6fbc
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
// Sticker picker depends on the fixed height previously used for all tiles
|
// Sticker picker depends on the fixed height previously used for all tiles
|
||||||
height: 273px;
|
height: 283px; // height of the popout minus the AppTile menu bar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -375,17 +375,20 @@ export default class AppTile extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
// all widgets can theoretically be allowed to remain on screen, so we wrap
|
if (!this.props.userWidget) {
|
||||||
// them all in a PersistedElement from the get-go. If we wait, the iframe will
|
// All room widgets can theoretically be allowed to remain on screen, so we
|
||||||
// be re-mounted later, which means the widget has to start over, which is bad.
|
// wrap them all in a PersistedElement from the get-go. If we wait, the iframe
|
||||||
|
// will be re-mounted later, which means the widget has to start over, which is
|
||||||
|
// bad.
|
||||||
|
|
||||||
// Also wrap the PersistedElement in a div to fix the height, otherwise
|
// Also wrap the PersistedElement in a div to fix the height, otherwise
|
||||||
// AppTile's border is in the wrong place
|
// AppTile's border is in the wrong place
|
||||||
appTileBody = <div className="mx_AppTile_persistedWrapper">
|
appTileBody = <div className="mx_AppTile_persistedWrapper">
|
||||||
<PersistedElement persistKey={this._persistKey}>
|
<PersistedElement persistKey={this._persistKey}>
|
||||||
{appTileBody}
|
{appTileBody}
|
||||||
</PersistedElement>
|
</PersistedElement>
|
||||||
</div>;
|
</div>;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue