igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Horizontal Scrolling is not shown when you have paging activated and you start resizing the columns

Open SlavUI opened this issue 8 years ago • 6 comments

Description

Horizontal Scrolling is not shown when you have paging activated and you start resizing the columns

  • igniteui-angular version: 6.1.0
  • browser: Chrome

Steps to reproduce

  1. Open Cell editing sample on staging
  2. Start resizing the first column and it will push the columns to the right but there will be no horizontal scroll

Result

The columns are pushed to the right but there is no horizontal scroll. If you push more and more the scrolls appears but again you can't see all of the pushed columns.

Expected result

Upon the push of the columns to the right a horizontal scroll should appear

Attachments

Attach a sample if available, and screenshots, if applicable.

SlavUI avatar Jul 05 '18 15:07 SlavUI

This seems to related to the column widths being in percentage. Currently when resized the resized column get its width changed to pixel while the rest have it in percentage. Since totalWidth takes the number of the width. If a column has width 25% it will take that it's width is 25px.

I believe in order for this to be fixed there are 2 options:

  1. All column widths should be converted to pixels when resizing is started
  2. The percentages for the resized column should change based on current resizing action. For example if made bigger it will have its width in percentage increased and not switched to pixels, while the rest of the columns would have their widths in percentage decreased.

@SAndreeva @ChronosSF What do you think?

skrustev avatar Jul 12 '18 16:07 skrustev

@skrustev I think the second approach is the correct one.

mpavlinov avatar Jul 13 '18 08:07 mpavlinov

I think we need a more general approach when we have percentage values. We should decide how column widths are calculated on the very initialization of the grid. I would vote for converting everything to pixels, but I am not sure whether this is the best solution. May be we should go through all possible use cases and consider what the user expectations would actually be.

SAndreeva avatar Jul 16 '18 06:07 SAndreeva

We're going to wait until this PR is merged, because it introduces a big change in the width/height logic of the grid. After that we'll fix this issue.

tiliev avatar Oct 16 '18 08:10 tiliev

@tiliev we can start with this issue

zdrawku avatar Nov 07 '18 12:11 zdrawku

This issue is related with version 6.1.x which is no longer supported, but is another issue (#3513) that describe the same problem for our latest versions: 6.2.x and 7.1.x. There is also a PR that fix this issue: #3515 and #3518

ddincheva avatar Jan 14 '19 09:01 ddincheva