angular-ui / ui-grid

UI Grid: an Angular Data Grid
http://ui-grid.info
MIT License
5.39k stars 2.47k forks source link

Bug : leaveOpen option in Grid Menu is not working when columns are resized #4856

Open Rumeth opened 8 years ago

Rumeth commented 8 years ago

UI Grid 3.0.6

The leaveOpen option is not working when columns are pinned & scroll is enabled.

Requirements:

Steps:

  1. Resize one or more columns till the first column can be completely scrolled off view.
  2. Scroll to the column which you want to hide while one or more columns are hidden by scroll on the left.
  3. Open Grid Menu & select the column to hide.
  4. The Grid Menu is hidden following the action automattically even when leaveOpen is set to true for the Menu Item.
imbalind commented 8 years ago

Can you please build a plunker showing this behaviour?

Rumeth commented 8 years ago

http://plnkr.co/edit/MTZkCUlSF3BOAwXH7aBV?p=preview

The default grid menu has been used to hide the columns.

The issue occurs even when using the default menu.

Steps:

  1. Expand the Company column to enable Horizontal Scroll.
  2. Scroll to the right until the Id column is hidden even a little.
  3. Open the Grid Menu & hide any of the columns currently in view other than Id.
imbalind commented 8 years ago

Ok, I can confirm this. But I have to say I don't think this will be looked upon in the near future. If you can put up a PR I'll look through it and try to get it in the next release.