angular-ui/ui-grid

Right pinned column hidden by scrollbar

Open

#4,517 建立於 2015年10月14日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)JavaScript (5,395 star) (2,496 fork)batch import
grid-pinninghelp wanted

描述

I have a narrow column, only 20 pixels wide, that contains a pencil icon for opening the record in an edit page. I want to pin this column to the right so that it will always be visible even with a horizontal scroll.

My problem is that when I add 'pinnedRight' to the column definition, it's placed under the vertical scrollbar but still leaves a 20 pixels gap between the scrollbar and the last but one column.

If I increase the with of the column to 45 pixels, the Icon is displayed, but still leaves a gap to the other colmn.

See my attached images for explanation.

Not pinned: not pinned

Pinned right: pinned right

Wider column: wider column

貢獻者指南