also set max-height so you can't make a sublist bigger than the content
This commit is contained in:
parent
44b92eb071
commit
197dd57461
1 changed files with 5 additions and 1 deletions
|
@ -371,8 +371,12 @@ const RoomSubList = React.createClass({
|
||||||
</div>;
|
</div>;
|
||||||
} else {
|
} else {
|
||||||
const heightEstimation = (len * 40) + 31;
|
const heightEstimation = (len * 40) + 31;
|
||||||
|
const style = {
|
||||||
|
flexBasis: `${heightEstimation}px`,
|
||||||
|
maxHeight: `${heightEstimation}px`,
|
||||||
|
};
|
||||||
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
|
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
|
||||||
return <div className={"mx_RoomSubList"} style={{flexBasis: heightEstimation}}>
|
return <div className={"mx_RoomSubList"} style={style}>
|
||||||
{this._getHeaderJsx()}
|
{this._getHeaderJsx()}
|
||||||
<GeminiScrollbarWrapper>
|
<GeminiScrollbarWrapper>
|
||||||
{ content }
|
{ content }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue