Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat(panel): allow transform to be animated on an offset panel #9941

Closed

Conversation

crisbeto
Copy link
Member

Previously, if a panel had a position with an offset (e.g. $mdPanel.newPanelPosition().center()), the positioning would break any transform animations on the panel. This was due to the fact that mdPanel uses inline transform styles to do the offsetting. These changes introduce a wrapper around the panel (.md-panel-inner-wrapper), which will handle all of the positioning, allowing for any animations to be applied to the .md-panel itself.

Relates to #9641.
Fixes #9905.

@crisbeto crisbeto added the needs: review This PR is waiting on review from the team label Oct 29, 2016
@crisbeto crisbeto force-pushed the 9905/panel-offset-animation branch from fc21fb0 to 01ef22a Compare October 29, 2016 19:36
@@ -2605,37 +2619,37 @@ MdPanelPosition.prototype.getTransform = function() {

/**
* Sets the `transform` value for a panel element.
* @param {!angular.JQLite} panelEl
* @param {!angular.JQLite} element
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency sake, I would just use el here, and then all the way through.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@crisbeto crisbeto force-pushed the 9905/panel-offset-animation branch from 01ef22a to 098f8df Compare October 31, 2016 13:42
@ThomasBurleson ThomasBurleson modified the milestone: 1.1.2 Jan 1, 2017
@ThomasBurleson
Copy link
Contributor

@crisbeto - please rebase and I will do a final review.

@ThomasBurleson ThomasBurleson added the needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved label Jan 1, 2017
@crisbeto crisbeto force-pushed the 9905/panel-offset-animation branch from 098f8df to c9f01b7 Compare January 1, 2017 20:20
@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Jan 1, 2017
@crisbeto crisbeto force-pushed the 9905/panel-offset-animation branch from c9f01b7 to ae4bdca Compare January 1, 2017 20:27
@crisbeto
Copy link
Member Author

crisbeto commented Jan 1, 2017

Done @ThomasBurleson.

@crisbeto crisbeto removed the needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved label Jan 1, 2017
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.2, 1.1.3 Jan 4, 2017
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.3, 1.1.4 Feb 4, 2017
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.4, 1.1.5 May 7, 2017
@Splaktar Splaktar added ui: CSS hotlist: animations ux: polish needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved and removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels Feb 7, 2018
@Splaktar Splaktar modified the milestones: 1.1.7, 1.2.0 Feb 7, 2018
@Splaktar
Copy link
Member

Splaktar commented Feb 7, 2018

Please rebase once more.

Previously, if a panel had a position with an offset (e.g. `$mdPanel.newPanelPosition().center()`), the positioning would break any `transform` animations on the panel. This was due to the fact that `mdPanel` uses inline `transform` styles to do the offsetting. These changes introduce a wrapper around the panel (`.md-panel-inner-wrapper`), which will handle all of the positioning, allowing for any animations to be applied to the `.md-panel` itself.

Relates to angular#9641.
Fixes angular#9905.
@crisbeto crisbeto force-pushed the 9905/panel-offset-animation branch from ce1f5c9 to 9cad06e Compare February 7, 2018 17:34
@crisbeto
Copy link
Member Author

crisbeto commented Feb 7, 2018

Rebased.

@Splaktar Splaktar removed the needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved label Feb 8, 2018
@Splaktar Splaktar assigned Splaktar and unassigned ErinCoughlan Jul 31, 2018
@Splaktar Splaktar requested review from Splaktar and removed request for Splaktar July 31, 2018 04:25
@Splaktar Splaktar changed the title fix(panel): allow transform to be animated on an offset panel feat(panel): allow transform to be animated on an offset panel Jul 31, 2018
@Splaktar
Copy link
Member

I'm going to move this over to #11390 since it needs rebasing again and will also need some changes to fix tooltip styling.

@Splaktar Splaktar closed this Jul 31, 2018
@Splaktar Splaktar removed this from the 1.2.0 milestone Sep 4, 2018
@Splaktar Splaktar added the pr: lgtm This PR has been approved by the reviewer label May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ hotlist: animations P2: required Issues that must be fixed. pr: lgtm This PR has been approved by the reviewer type: enhancement ui: CSS ux: polish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(panel): allow transform to be animated on elements with an offset
7 participants