1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-17 20:02:20 +03:00

Merge pull request #2234 from matrix-org/bwindels/roomsectionfixcollapsedsize

Redesign: Fix room lists sizing
This commit is contained in:
Bruno Windels
2018-10-24 12:23:05 +00:00
committed by GitHub
5 changed files with 5 additions and 2 deletions

View File

@@ -344,7 +344,7 @@ const RoomSubList = React.createClass({
"mx_RoomSubList_nonEmpty": len && !this.state.hidden,
});
if (this.state.hidden) {
return <div className={subListClasses}>
return <div className={subListClasses} style={{flexBasis: "unset", flexGrow: "unset"}}>
{this._getHeaderJsx()}
</div>;
} else {

View File

@@ -99,6 +99,7 @@ class Sizer {
class FlexSizer extends Sizer {
setItemSize(item, size) {
item.style.flexGrow = `0`;
item.style.flexBasis = `${Math.round(size)}px`;
}
}