ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Scrolling - column headers misaligned with data...

Open cleon26 opened this issue 11 years ago • 41 comments

Hey guys. I found a weird issue. I've been scratching my head with this one for a while trying to narrow it down. As best I can tell it's somehow related to the container size?

  1. Run this plnkr.
  2. Reduce the width of the right most column to about the size of the label "Company".
  3. Scroll the table to the right and everything looks fine. http://plnkr.co/edit/2gUnkzVdF1xvU9muNZ4K?p=preview
  4. Now run the plunker in embedded view.
  5. Reduce the width of the right most column to about the size of the label "Company".
  6. Scroll the table to the right and notice that the columns are misalgined with the headers. http://embed.plnkr.co/2gUnkzVdF1xvU9muNZ4K/preview

normal embedded

cleon26 avatar Jan 19 '15 21:01 cleon26

I have this same issue except it only occurs when horizontal scrolling. It initially shows up correctly.

kjkurtz avatar Jan 19 '15 21:01 kjkurtz

I could swear I've added an issue for this last week but I cannot find it anywhere?! Yeah, seems like there is some issue with the scrolling and the header getting out of sync with the columns.

alexandery avatar Jan 19 '15 23:01 alexandery

There was, I think, but I haven't recreated any issues with header misalignment for some time (since @swalters removed the throttling I think). On the plunkers provided above I don't get a misalignment, so perhaps it is somewhat OS or browser dependent?

PaulL1 avatar Jan 20 '15 06:01 PaulL1

@PaulL1 I get it on both IE9 and FF 35 (whatever is the latest as of today). And I do get it on Tutorial pages.

P.S. Funny enough - I submitted an issue for this mid last week but for the life of me cannot find it in the issues here. I had screenshots to showcase the issue. Weird.

alexandery avatar Jan 20 '15 07:01 alexandery

I can replicate it on IE11 and FF35. And I swore that I could do it in Chrome39 yesterday as well, but am starting to doubt myself this morning.

cleon26 avatar Jan 20 '15 13:01 cleon26

I'm trying to replicate today, and I cannot replicate on firefox on Linux, nor on Chrome.

When you say you scroll, is there some trick to the scrolling? I've tried trackpad on Chrome/OSX, and I've tried both dragging and using the scrollbar buttons on Firefox, neither are giving me a header misalignment.

PaulL1 avatar Jan 31 '15 04:01 PaulL1

Nothing fancy... I can try again at work on Monday...

Sent from my iPad

On Jan 30, 2015, at 11:54 PM, Paul [email protected] wrote:

I'm trying to replicate today, and I cannot replicate on firefox on Linux, nor on Chrome.

When you say you scroll, is there some trick to the scrolling? I've tried trackpad on Chrome/OSX, and I've tried both dragging and using the scrollbar buttons on Firefox, neither are giving me a header misalignment.

— Reply to this email directly or view it on GitHub.

cleon26 avatar Jan 31 '15 23:01 cleon26

Just tried again this morning and can still replicate it in FF. Doesn't seem to matter whether I click the scroll button or drag the scroll bar.

image

cleon26 avatar Feb 02 '15 16:02 cleon26

I am running into similar issues, tested in both IE11, FF30

image

image

sachin-bs avatar Feb 04 '15 21:02 sachin-bs

Hi I am facing same issue. When we scroll to the extreme right some of the columns are not reachable. It will show 2nd last or 3rd last column as last column and I can see a very small part of the last column

yugansh20 avatar Feb 05 '15 04:02 yugansh20

@yugansh20 : your issue sounds different, this issue is about the header being misaligned with the column, not columns being unreachable. If that is your issue, suggest raising that as a new issue along with a plunker that demonstrates it.

PaulL1 avatar Feb 05 '15 05:02 PaulL1

any updates to this hi-pri bug?

sachin-bs avatar Feb 12 '15 14:02 sachin-bs

I write quick fix for scroll here: https://github.com/angular-ui/ng-grid/issues/2734#issuecomment-74475177

Maybe this fix also help with this bug? (for me it works)

dczepierga avatar Feb 16 '15 08:02 dczepierga

This is a dupe of #2521, leaving open.

c0bra avatar Feb 16 '15 16:02 c0bra

Closed via cf86090

c0bra avatar Feb 16 '15 17:02 c0bra

So a fix was made to align the column lines with the header lines but in the process a gap was introduced at the beginning of the grid... alignmentnewerror

sachin-bs avatar Feb 17 '15 19:02 sachin-bs

+1 I have the same issue as @sachinny21

Is there another issue open to follow this?

edit: https://github.com/angular-ui/ng-grid/issues/2521

Skinner927 avatar Feb 19 '15 19:02 Skinner927

Am not able to scroll the headers i.e. when i use horizontal scrolling only data get scrolled and not the header of the table.

Can some one please help this is quite high priority for us as of now.

susharma-equinix avatar Jul 10 '15 04:07 susharma-equinix

I have the same issue with rc22. Basically as @susharma-equinix wrote only the content is scrolled but the table headers remain unchanged.

Any help?

kicsisimo avatar Jul 16 '15 09:07 kicsisimo

+1

benbynum avatar Aug 21 '15 16:08 benbynum