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

Scroll Issue in 2.0.11

Open ManojSridhar opened this issue 12 years ago • 12 comments

In my ng-grid the horizontal scroll is creating problem. Only certain columns are visible. When i scroll right i get empty grid.

ManojSridhar avatar Nov 12 '14 12:11 ManojSridhar

So @PaulL1 is this a bug and currently there is no work around for this?

ManojSridhar avatar Nov 13 '14 05:11 ManojSridhar

It looks to be potentially a bug. I have little experience with 2.x, so not qualified to comment in a lot of detail - what I normally do is to classify the 2.x defects as such so that if someone with 2.x experience has time to look at it they can do so. In general terms most of the team work on 3.x now, and there are very few people left on the team who still have 2.x expertise - one of the hazards of open source I guess.

PaulL1 avatar Nov 13 '14 06:11 PaulL1

Ok, adding few points : I have enabled and disabled pinning but the columns are yet not displayed in right. i am not dealing with any performance improvement, i am not even able to get the last few columns after any time.

http://stackoverflow.com/questions/26884036/horizontal-scrolling-of-ng-grid

ManojSridhar avatar Nov 13 '14 07:11 ManojSridhar

Where can i get 3.x. Is the release stabilised?

ManojSridhar avatar Nov 13 '14 08:11 ManojSridhar

3.0 rc15 is available via bower - bower install angular-ui-grid. It is not fully stable, but is quite close.

PaulL1 avatar Nov 13 '14 09:11 PaulL1

Is there huge work to do in code wise if i change my ng-grid to ui-grid?

ManojSridhar avatar Nov 13 '14 09:11 ManojSridhar

I have downloaded 3.0 from https://github.com/angular-ui/ng-grid In the downloaded file which is the one i want to include in my project. I have 2.0.11 already used in my project.

ManojSridhar avatar Nov 13 '14 10:11 ManojSridhar

And in this example http://plnkr.co/edit/UfFnsZ?p=preview the horizontal scrollbar works fine for ng-grid. But for my case the ng-grid has issue with scrollbar. This is really confusing.

ManojSridhar avatar Nov 13 '14 11:11 ManojSridhar

I have found answer for the issue. Actually there were two steps to be followed: * The width of each column should be given in px format only. There will be some issue if it is given in %format. * The ng-grid.css have to be updated to have .ngviewport class with overflow:auto. In my project .ngviewport did not have overflow and this too was a reason for the issue.

ManojSridhar avatar Nov 13 '14 16:11 ManojSridhar

@ManojSridhar did that workaround take care of it for you? If so I'll go ahead and close this. Thanks.

c0bra avatar Nov 13 '14 22:11 c0bra

Yes the scrollbar is coming now but facing new issue with css for bootstrap dropdown and horizontal scrollbar of ng-grid.

http://stackoverflow.com/questions/26927282/overflow-of-bootstrap-dropdown-in-ng-grid

ManojSridhar avatar Nov 14 '14 10:11 ManojSridhar

@c0bra the issue with ng-grid is resolved by that work around. The new issue is with bootstrap dropdown only. so you can close this.

ManojSridhar avatar Nov 14 '14 14:11 ManojSridhar