From 5c843acc105f2f9ec6e83f622c407361d7183e97 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 22 Oct 2018 11:16:33 +0200 Subject: [PATCH] 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 --- src/components/structures/RoomSubList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index e1bc1954da..e00f0f2d03 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -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");