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

fix(toast): Hide scrollbars during animation. #6029

Closed
wants to merge 1 commit into from

Conversation

topherfangio
Copy link
Contributor

During animation, certain browsers would show scroll bars if the
toast was positioned at the bottom of the parent container.

Fix by wrapping the animated portions in a div with hidden
overflow.

Also, update documentation with notes about positioning and
recommendations.

BREAKING CHANGE

md-toast now applies the enter/leave animations to a wrapper
div with a class md-toast-wrapper. If you have customized
the animations or other styles of your toast, you will need
to update your CSS to account for the new wrapper.

Better fix for #2936.

@topherfangio topherfangio added the needs: review This PR is waiting on review from the team label Dec 2, 2015
@topherfangio
Copy link
Contributor Author

@robertmesserle My other method of preventing toast scrollbars already got merged, but I have created a new PR with your suggestion of using a wrapper div with overflow: hidden. Can you please take a look?

@topherfangio topherfangio added in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: work labels Dec 2, 2015
@topherfangio
Copy link
Contributor Author

Spoke with Thomas offline and he suggested a few changes. Implementing them now.

During animation, certain browsers would show scroll bars if the
toast was positioned at the bottom of the parent container.

Fix by wrapping the animated portions in a div with hidden
overflow.

Also, update documentation with notes about positioning and
recommendations.

BREAKING CHANGE

md-toast now applies the enter/leave animations to an inner
div with a class `md-toast-content`. If you have customized
the animations or other styles of your toast, you will need
to update your CSS to account for the new wrapper.

Fixes #2936.
@topherfangio topherfangio force-pushed the team/topher/fix-toast-scrolling-2936 branch from aa1b630 to 258f158 Compare December 2, 2015 20:51
@topherfangio topherfangio removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: work labels Dec 2, 2015
@topherfangio
Copy link
Contributor Author

@ThomasBurleson @robertmesserle Finished the requested changes. Can you please review?

@robertmesserle
Copy link
Contributor

LGTM

@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 Dec 3, 2015
@ThomasBurleson
Copy link
Contributor

@jelbourn - I want to include this in the v1.0.0 build. Thoughts?

@ThomasBurleson ThomasBurleson added this to the 1.0-rc7 milestone Dec 7, 2015
@ThomasBurleson ThomasBurleson self-assigned this Dec 7, 2015
@jelbourn
Copy link
Member

jelbourn commented Dec 7, 2015

LGTM

@topherfangio topherfangio deleted the team/topher/fix-toast-scrolling-2936 branch December 17, 2015 20:54
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.

4 participants