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

Vertical scrollbar obscures part of last column

Open Dev63 opened this issue 12 years ago • 6 comments

When you express col widths as a %, adding up to 100%, the last column is partially obscured by the vertical scrollbar. This is fine, unless that column is right-justified, in which cast you end up not being able to see the last couple of digits.

image

It would be nice if the grid just drew the table cells into their reduced space. But I wouldn't want to have this "fixed" by leaving a big white gap above the scrollbar (ugly), the way the horizontal scrollbar leaves a gap when row selectors are present.

I tried to work around this by having the col widths add up to 98%, but the current version seems to treat percentages as relative sizes, and always adds up to 100% (in proportion). Even if my col widths only sum to 50%.

Dev63 avatar Nov 03 '14 05:11 Dev63

Duplicate of #1878 ?

freein avatar Nov 04 '14 08:11 freein

@freein Good find. That issue writeup is a little garbled, and originally about a missing horizontal scrollbar, but in the comments someone provides a nice workaround for this issue, which is to add a class to the last column via cellClass, and then give that column padding-right:17px. Looks nice.

Dev63 avatar Nov 04 '14 16:11 Dev63

I think this should be fixed in master now - could you retest @Dev63?

PaulL1 avatar Jan 14 '15 22:01 PaulL1

@PaulL1 No, this is still behaving the same. Using a cellClass:'text-right' as the last column makes this obvious, but it happens to every column regardless of justification.

Dev63 avatar Jan 14 '15 22:01 Dev63

OK, I don't get scroll bars as I'm on OSX, but @swalters, do you want to look at this too?

PaulL1 avatar Jan 14 '15 23:01 PaulL1

This was fixed by e099c5b5721afc

c0bra avatar Feb 16 '15 21:02 c0bra