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

Vertical bar of pinned column is cut off in the middle when rows are not filled up.

Open tkiryu opened this issue 8 years ago • 11 comments

Description

Vertical bar of pinned column is cut off in the middle when rows are not filled up.

Steps to reproduce

  1. Go to https://stackblitz.com/edit/igx-grid-issue

Result

image

Expected result

Vertical bar should not be cut off.

tkiryu avatar Apr 19 '18 01:04 tkiryu

Actually I don't think this is feasible to fix. It's just how the pinning border works at the moment. We need a different rendering method for it in order to resolve.

@simeonoff , let me know what you think. IMO this should be considered by design.

ChronosSF avatar Apr 19 '18 08:04 ChronosSF

@ChronosSF yeah, since we add the pin border to the pinned cell itself, there isn't a feasible fix at the moment.

simeonoff avatar Apr 19 '18 08:04 simeonoff

@tkiryu I will try to provide a "fix" for this in this release.

simeonoff avatar Apr 19 '18 08:04 simeonoff

@tkiryu @simeonoff This is a scenario with explicit height set and should not be handled by use, but by the developer, by reducing the height.

The new smart defaults will never get the grid into such scenario by default, when explicit height is not set. #1054

kdinev avatar Apr 19 '18 08:04 kdinev

@kdinev Hmm..., the solution that reducing the grid height doesn't seem to meet the needs of those who want to fix the grid at specific height no matter how many rows are.

igGridhas no problem with vertical bar. http://jsfiddle.net/mbgoa7tr/

I expect igx-grid to be the same behavior.

tkiryu avatar Apr 22 '18 11:04 tkiryu

@tkiryu Have you checked what happens with the new sizing functionality?

kdinev avatar Apr 23 '18 07:04 kdinev

@kdinev Oh, sorry I haven't checked yet. I'll check #1054 with 5.3.0.rc.2.

tkiryu avatar Apr 23 '18 11:04 tkiryu

@kdinev I checked new sizing functionality. It is nice! It makes us more convenient!

But, with my understanding, this functionality is for scenarios that grid's width/height are not provided. Unfortunately, it doesn't cover my scenario.

tkiryu avatar Apr 24 '18 11:04 tkiryu

By the way, I probably found an issue with calculating height. https://stackblitz.com/edit/igx-grid-default-sizing

In the sample above,

  • I remove width, height and columnWidth inputs from the igx-grid.
  • I set grid container height to 800px via CSS.
  • I add 12 rows. As a result, there are 15 rows.

I expected igx-grid height was 800px. But in fact, igx-grid height exceeds 800px.

Should I submit an issue?

tkiryu avatar Apr 24 '18 12:04 tkiryu

@tkiryu In the referenced sample I see 15 records in the variousData array to which the grid is bound. So I’m not sure what you mean by : • I add 12 rows. As a result, there are 15 rows. Let me know if I’m missing something.

Based on the defined parameters for the new height defaults as per the original issue - https://github.com/IgniteUI/igniteui-angular/issues/1054 : height • 100% - if parent container = 0 then use the height of the viewport/window. • if rowHeight * rowCount < height then set height = null.

15 rows x 50px height each = 750px, which is less than 800. => the height is set to null hence the resulting height will not be equal to the container height. The content will span based on its own size.

By that spec headers and footers are not included in the calculations, so it’s possible for them to exceed the container height if they’re larger.

I suppose you can log it as an improvement idea as at this time the behavior is compliant with the spec, hence it shouldn’t be considered a bug.

MayaKirova avatar Apr 25 '18 07:04 MayaKirova

@tkiryu I just tested your sample. The height was not set and the grid was spanning the container initially. image

Then I added height, and the grid was within the height.

image

Here's the computed height: image

kdinev avatar Apr 25 '18 07:04 kdinev