From 4e80adfe3f60457ce4082267e077bd5e13b2c81e Mon Sep 17 00:00:00 2001 From: jan Date: Fri, 14 Apr 2023 21:42:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[blf]=20fix=20buggy=20design=20i?= =?UTF-8?q?n=20bigMapMode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/buildingListFilter/main.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modules/buildingListFilter/main.ts b/src/modules/buildingListFilter/main.ts index 679dcc1dea..c599965de7 100644 --- a/src/modules/buildingListFilter/main.ts +++ b/src/modules/buildingListFilter/main.ts @@ -377,16 +377,25 @@ export default (async ({ ); }); + extraBtnsGroup.append(searchBtn, search, sortBtn, dcvBtn); + if (fixedFilters) { fixedWhiteSpace.style.setProperty( 'height', getComputedStyle(wrapper).height ); + LSSM.$stores.root.hook({ + event: 'bigMapWindowSizeChanged', + callback() { + fixedWhiteSpace.style.setProperty( + 'height', + getComputedStyle(wrapper).height + ); + }, + }); } else { selectGroup.style.setProperty('width', '100%'); } - - extraBtnsGroup.append(searchBtn, search, sortBtn, dcvBtn); window.buildingsVehicleLoadVisible(); };