question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PnP ListView control - When the items reach the number of items more than can be shown on a page/component, it adds horizontal scroll instead of vertical.

See original GitHub issue

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Version: [1.19.0]

Expected / Desired Behavior / Question

When there is no room to show all items inside browser window, it should only add a vertical scrollbar. Horizontal scrollbar should only be visible when the list view cannot show all the columns in the browser window.

Observed Behavior

When the items reach the number of items more than can be shown on a page/component, it adds horizontal scroll instead of vertical.

Steps to Reproduce

Use a ListView control on the page:

<ListView
                  items={this.state.projectItems}
                  viewFields={viewFields}
                  compact={true}
                  selectionMode={SelectionMode.none}
                  showFilter={true}
                  defaultFilter=""
                  filterPlaceHolder="Search..."/>

Add a new item to the list dynamically that cannot be viewed in the browser window / parent component’s height, or load the items more than that can be shown within the height of a parent div, it shows a horizontal bar. Horizontal scroll should only appear based on current div’s width which works fine.

image

The last column in the PnP listview control assumes the remaining width of the page or parents div and somehow miss-calculates in determining the width and height should be and show horizontal bar instead of vertical bar.

  • Resizing the window, recalculates the height and width correctly.

  • This bug occurs in Chrome and not in Edge.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AJIXuMuKcommented, Sep 10, 2020

@zenaidura - PnP Reusable controls is an open-source initiative. People work on the issues and improvements on their spare time. That’s why we don’t have an SLA on fixing bugs.

We will definitely take a look at the issue.

0reactions
AJIXuMuKcommented, Mar 2, 2021

v2.5.0 has been released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making ListView scrollable in vertical direction - Stack Overflow
I can see that when the list items are more than what can fit, I get a horizontal scroll bar. I tried to...
Read more >
Horizontal scroll bar not appearing in list view control
Observation: 1) Both the horizontal and vertical scroll bar appears. It means only if the length of the rows is greater than the...
Read more >
Scroll viewer controls - Windows apps - Microsoft Learn
With those controls, if there are too many items to show all at once, the user is able to scroll either horizontally or...
Read more >
Flutter : let's know the ScrollController and ScrollNotification
Now we are listening to the Scroll events, but how we can know if the scroll reach the top or bottom. We just...
Read more >
SingleChildScrollView class - widgets - Flutter - Dart API docs
A box in which a single widget can be scrolled. This widget is useful when you have a single box that will normally...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found