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

fix(mdTabs): Fix 0-height animation on iOS devices. #4341

Closed
wants to merge 1 commit into from

Conversation

topherfangio
Copy link
Contributor

On iOS devices, when switching between tabs, the height would jump
to 0, then animate to the proper place causing a bad glitch.

Fixes #4339

@topherfangio topherfangio added the needs: review This PR is waiting on review from the team label Aug 26, 2015
@topherfangio topherfangio added this to the 0.11.0 milestone Aug 26, 2015
$element.css(oldCssHeight);

// Animate the height from the old to the new
$animate.animate($element, oldCssHeight, newCssHeight).then(function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use $animateCss(element, { from, to, duration } ).start( )?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was using $animate so I didn't want to alter the existing code too much, but I'll give this a try and run all of the tests.

On iOS devices, when switching between tabs, the height would jump
to 0, then animate to the proper place causing a bad glitch.

Fixes #4339
@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Aug 26, 2015
@topherfangio topherfangio deleted the fix-tabs-ios-height-4339 branch August 31, 2015 15:45
kennethcachia pushed a commit to kennethcachia/material that referenced this pull request Sep 23, 2015
On iOS devices, when switching between tabs, the height would jump
to 0, then animate to the proper place causing a bad glitch.

Fixes angular#4339. Closes angular#4341.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants