Merge pull request #5447 from matrix-org/travis/fix-stickerpicker

Fix the stickerpicker
This commit is contained in:
Travis Ralston 2020-11-27 07:06:35 -07:00 committed by GitHub
commit ced68a6fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 11 deletions

View File

@ -22,7 +22,7 @@
iframe {
// 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
}
}

View File

@ -375,9 +375,11 @@ export default class AppTile extends React.Component {
</div>
);
// all widgets can theoretically be allowed to remain on screen, so we 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.
if (!this.props.userWidget) {
// All room widgets can theoretically be allowed to remain on screen, so we
// 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
// AppTile's border is in the wrong place
@ -388,6 +390,7 @@ export default class AppTile extends React.Component {
</div>;
}
}
}
let appTileClasses;
if (this.props.miniMode) {