diff --git a/res/css/structures/_RoomSubList.scss b/res/css/structures/_RoomSubList.scss index 72b8ed4436..baecc62b2a 100644 --- a/res/css/structures/_RoomSubList.scss +++ b/res/css/structures/_RoomSubList.scss @@ -16,13 +16,12 @@ limitations under the License. .mx_RoomSubList { min-height: 80px; - flex: 1; + flex: 0; display: flex; flex-direction: column; } .mx_RoomSubList_hidden { - flex: 0; min-height: unset; } diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 4976d3e211..e8cf5c4273 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -370,8 +370,9 @@ const RoomSubList = React.createClass({ {this._getHeaderJsx()} ; } else { + const heightEstimation = (len * 40) + 31; const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper"); - return