pl-fe: ScrollableList: Fix height for lists displaying placeholders
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
b910f4d4cd
commit
17d0cf7562
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ const ScrollableList = React.forwardRef<Virtualizer<any, any>, IScrollableList>(
|
|||
id={'parentRef' in props ? id : undefined}
|
||||
className={listClassName}
|
||||
style={{
|
||||
height: !showLoading && data.length ? virtualizer.getTotalSize() : undefined,
|
||||
height: (!showLoading || showPlaceholder) && data.length ? virtualizer.getTotalSize() : undefined,
|
||||
width: '100%',
|
||||
position: 'relative',
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue