ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-list-busy-row should not display when list busy is false

Open SherrySherry123 opened this issue 5 years ago • 7 comments

Hi colleague, I am from Successfactors team, please help to fix this issue.

Describe the bug Issue: ui5-list-busy-row always display no matter if list is busy or not. And ui5-list-busy-row is empty with 2rem height. Expect: ui5-list-busy-row should not display

To reproduce Steps to reproduce the behavior:

  1. Create List with busy and infiniteScroll

Expected behavior When busy is true, display ui5-list-busy-row; When busy is false, ui5-list-busy-row should set display as none;

Screenshots image

SherrySherry123 avatar Dec 11 '20 07:12 SherrySherry123

Hi @SherrySherry123 ,

Can you please give a isolated sample that demonstrates the issue in CodeSandBox?

Best Regards, Nikolay Hristov GitHub Dispatcher

NHristov-sap avatar Dec 11 '20 08:12 NHristov-sap

Hi @NHristov-sap, Here is the sample. Please let me know if you have further question. https://codesandbox.io/s/ui5-webcomponents-forked-m0207?file=/index.html image Regards, Sherry

SherrySherry123 avatar Dec 23 '20 06:12 SherrySherry123

Hi @Martotko and @NHristov-sap , Is there anyone looking at this issue?

Regards, Sherry

SherrySherry123 avatar Jan 05 '21 02:01 SherrySherry123

Hi @SherrySherry123,

The busy-row is added when infinity-scroll attribute or busy attribute are set otherwise it is not visible. You could remove the attribute if you are not using this behavior or when the last item is loaded. Seems to be not bug.

Regards, Nayden

nnaydenow avatar Jan 11 '21 14:01 nnaydenow

Hi @nnaydenow ,

Actually we need the infinity-scroll attribute, we need to load more items when the list is long; As the list items is returned from backend, the list items count maybe 100, or may 1;

So there are two cases for me:

  1. When the list is long, when scroll down to the busy-row area, it will show the busy indicator and load more items;
  • case1
  1. When the list is short, as there is no more items and no scroll, we expect the busy-row not display; As it breaks the ui layout in this case, as busy-row display nothing, but occupy an empty space with width and height;
  • case2
  • case2 busy-row

You can see the heigh marked with purple is different for case1 and case2, because the case2 display busy-row; Please help to fix that, as our goal uxr project depends on it, and we need to deliver user friendly ui;

SherrySherry123 avatar Jan 14 '21 08:01 SherrySherry123

Hello @SherrySherry123 we started working on a solution.

ilhan007 avatar Jan 14 '21 08:01 ilhan007

Great, thank you @ilhan007 for the quick action.

SherrySherry123 avatar Jan 14 '21 08:01 SherrySherry123