1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

fix room lists growing taller than screen height in FF

sections with flex-basis don't seem to shrink smaller in FF,
so use flexGrow which is unitless/proportional but works as well
This commit is contained in:
Bruno Windels
2018-10-22 11:16:33 +02:00
parent f42ab32e05
commit 5c843acc10

View File

@@ -350,7 +350,7 @@ const RoomSubList = React.createClass({
} else {
const heightEstimation = (len * 40) + 31;
const style = {
flexBasis: `${heightEstimation}px`,
flexGrow: `${heightEstimation}`,
maxHeight: `${heightEstimation}px`,
};
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");