Skip to content

Conversation

@caseyjhol
Copy link
Contributor

@caseyjhol caseyjhol commented Mar 8, 2018

Current behavior: https://plnkr.co/edit/kwyglaa2w9DxDmHtKt1Z?p=preview

Open the column menu for the first column.

New behavior: https://plnkr.co/edit/a2fLMi79c1W1WgKLxG82?p=preview

Menu width calculation was removed in #6588. Menu width needs to be calculated in order to properly position the menu (if there is not enough room to the left of the column). repositionMenu is now always called in the 'menu-shown' event listener to ensure the width can be properly calculated. Sorry I didn't catch this earlier.

The style attribute is removed from $elm in the 'menu-hidden' event listener to prevent the menu from appearing to slide from the left or right when opening another column menu while one is already open.

Menu animation speed was changed in #6588 to have different add/remove speeds. 0.04s has been chosen as a happy medium, and the $timeout duration has been changed to reflect the new transition duration (to reduce delay when hiding the menu).

position: relative has been removed from .ui-grid-header-cell-row to ensure consistent calculation of offsetParent across browsers.

Fixes #5396, #5990, #6085.

Menu width calculation was removed in angular-ui#6588. Menu width needs to be
calculated in order to properly position the menu (if there is not
enough room to the left of the column). repositionMenu is now always
called in the 'menu-shown' event listener to ensure the width can be
properly calculated. The style attribute is removed from $elm in the
'menu-hidden' event listener to prevent the menu from appearing to slide
from the left or right when opening another column menu while one is
already open.

Menu animation speed was changed in angular-ui#6588 to have different add/remove
speeds. 0.04s has been chosen as a happy medium, and the $timeout
duration has been changed to reflect the new transition duration (to
reduce delay when hiding the menu).

`position: relative` has been removed from .ui-grid-header-cell-row to
ensure consistent calculation of offsetParent across browsers.

Fixes angular-ui#5396, angular-ui#5990, angular-ui#6085.
@mportuga mportuga merged commit a83df5b into angular-ui:master Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants