mirror of https://github.com/vector-im/riot-web
also set max-height so you can't make a sublist bigger than the content
parent
44b92eb071
commit
197dd57461
|
@ -371,8 +371,12 @@ const RoomSubList = React.createClass({
|
|||
</div>;
|
||||
} else {
|
||||
const heightEstimation = (len * 40) + 31;
|
||||
const style = {
|
||||
flexBasis: `${heightEstimation}px`,
|
||||
maxHeight: `${heightEstimation}px`,
|
||||
};
|
||||
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
|
||||
return <div className={"mx_RoomSubList"} style={{flexBasis: heightEstimation}}>
|
||||
return <div className={"mx_RoomSubList"} style={style}>
|
||||
{this._getHeaderJsx()}
|
||||
<GeminiScrollbarWrapper>
|
||||
{ content }
|
||||
|
|
Loading…
Reference in New Issue