Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal scrollbar appearing where it doesn't need to #83

Open
the-integrator opened this issue Apr 9, 2021 · 6 comments
Open

Horizontal scrollbar appearing where it doesn't need to #83

the-integrator opened this issue Apr 9, 2021 · 6 comments
Labels
bug Something isn't working salesforce dependency Custom solve overhead too high, wait on platform legos

Comments

@the-integrator
Copy link

Wherever I put the SOQL Datatable it always renders a horizontal scrollbar letting me scroll literally 1px.
This is from a record page in my developer edition org:
image

The scrollbar disappears when I manually reduce one of the columns sizes.
Has anyone had this before?

@tsalb
Copy link
Owner

tsalb commented Apr 10, 2021

Oh this is a fun one - are you on windows desktop or laptop by any chance? If so, which?

Unfortunately I don’t have any windows VMs atm. I do recall seeing something like this over a screen share (many moons ago). I might be able to get my hands on a windows machine (or spin a VM) and give this a test at a future date.

Curious to see what others say, and if they’ve patched this themselves. I don’t have bandwidth until mid MAY unfortunately!

@tsalb tsalb added the help wanted Extra attention is needed label Apr 10, 2021
@the-integrator
Copy link
Author

Yes this is on a laptop running Windows 10.
I think I’m going to test this on different regions on a lightning page and see in detail when this comes up.
How/where would you start investigating so maybe I can have a look at?

Many thanks!

@tsalb
Copy link
Owner

tsalb commented Apr 11, 2021

Thanks for that confirmation. I am curious to see if this is different on desktop (not asking you to, just an observation).

I have two hunches:

  1. This is part of the base component, in which case we are SOL
  2. This is part of one of my div containers which i use to add styling, in which case I'd need a patch that doesn't adversely affect combinations of different OS-es and browsers.

For hunch 1, here are my thoughts:

  • Created a <lightning-datatable> per the docs, use width mode auto (forgot exact syntax) and use 20 columns. See if scroll bar persists.

For hunch 2:

Basically, I am trying to distill if this is me or if this is base component. Any data you can provide me would be awesome!

@JimBTek
Copy link

JimBTek commented Apr 30, 2021

I am seeing the same on Mac running Chrome Version 88.0.4324.192 (Official Build) (x86_64) and Firefox

It goes away if i zoom out to 80% or less.

This is in a 2/3rd split lightning page in the left side which is 2/3rd wide

I see this. the outer div is 963.99 and the inner table is trying to be 967 pixels.

image

@tsalb
Copy link
Owner

tsalb commented Jun 13, 2021

Investigated this during summer 21.

Looks to be an issue with the column-widths-mode property being set to "auto". Setting back to "fixed" resolves this however produces a worse UX. I will leave it as "auto" and hope they fix this without having any manual intervention on my side.

That being said, I'll investigate workarounds at a future date. Placing appropriate labels for future reference.

@tsalb tsalb added bug Something isn't working salesforce dependency Custom solve overhead too high, wait on platform legos and removed help wanted Extra attention is needed labels Jun 13, 2021
@RomanTheCube
Copy link

+1 to being impacted by this issue.

Windows 10, Edge browser. Horizontal scrolling bar appears no matter where the component is placed on the page, and not impacted by the number of columns etc.

*Note: Ticking the experimental overflow checkbox does appear to resolve this issue, but not sure what is happening with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working salesforce dependency Custom solve overhead too high, wait on platform legos
Projects
None yet
Development

No branches or pull requests

4 participants