Skip to content

Commit

Permalink
fix: broken delayloadlist if map selector list is ever empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed Nov 16, 2024
1 parent e5eb305 commit 78d36f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layout/pages/map-selector/map-selector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
</Panel>
</Panel>

<Panel class="w-full">
<Panel class="w-full h-fill">
<DelayLoadList id="MapListContainer" class="mapselector__list" itemheight="54px" itemwidth="100%" spacersize="3px" spacerperiod="1">
<!-- Populated via MapEntry snippets in code -->
</DelayLoadList>
Expand Down
3 changes: 3 additions & 0 deletions styles/pages/map-selector/map-selector.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
// Elements are MapEntrys, in mapentry.scss
&__list {
flow-children: down;
// Important note: always ensure a DelayLoadList has a non-zero height, if having 0 items results in 0 height,
// it'll never repaint itself when items are added.
height: 100%;
padding-right: 16px;
width: 100%;
overflow: squish scroll;
Expand Down

0 comments on commit 78d36f4

Please sign in to comment.