-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(tabs): new tab animation broken by code to support IE11 #11711
Conversation
fix for browsers other than IE Fixes #11689
* documentMode is an IE-only property | ||
* http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx | ||
*/ | ||
msie: window.document.documentMode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken from AngularJS
// Don't do this on other browsers because it breaks scroll to new tab animation. | ||
if ($mdUtil.msie) { | ||
if (shouldPaginate) { | ||
getElements().paging.style.width = '999999px'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapping this in a check for IE is the actual fix for non-IE browsers.
@Splaktar: after this commit, tabs getting added twice the time in mobile devices works fine for desktop, |
@gauravlodha I opened #11725 to track that issue. Thank you for reporting. |
The check is working on Microsoft Edge 44.17763.1.0 and the MS Edge Chromium is working fine. |
PR Checklist
Please check that your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The scroll to new tab animation is broken.
Issue Number:
Fixes #11689
What is the new behavior?
The scroll to new tab animation is fixed for browsers other than IE.
Does this PR introduce a breaking change?
Other information