diff options
| author | Matias Niemelä | 2013-11-15 00:09:37 -0500 | 
|---|---|---|
| committer | Matias Niemelä | 2013-11-20 20:54:07 -0500 | 
| commit | 1d50663b38ba042e8d748ffa6d48cfb5e93cfd7e (patch) | |
| tree | cd4fd86dd238bc78f765319ecc41d7798bcd2f0a /src/ngAnimate/animate.js | |
| parent | ec3c4f94c79e23c29abcde6e1d2f6eaf05e0664c (diff) | |
| download | angular.js-1d50663b38ba042e8d748ffa6d48cfb5e93cfd7e.tar.bz2 | |
fix(ngAnimate): use a fallback CSS property that doesn't break existing styles
The clip property seems to remove the box-shadow property when an absolute
positioned animation is ongoing. This fix changes the property to be border-spacing
which is also very underused. The border-spacing CSS property is only visible
when border-collapse is set to separate.
Closes #4902
Closes #5030
Diffstat (limited to 'src/ngAnimate/animate.js')
| -rw-r--r-- | src/ngAnimate/animate.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index 3b94a651..1a287e91 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -1023,7 +1023,7 @@ angular.module('ngAnimate', ['ng'])            var propertyStyle = timings.transitionPropertyStyle;            if(propertyStyle.indexOf('all') == -1) {              applyFallbackStyle = true; -            var fallbackProperty = $sniffer.msie ? '-ms-zoom' : 'clip'; +            var fallbackProperty = $sniffer.msie ? '-ms-zoom' : 'border-spacing';              style += CSS_PREFIX + 'transition-property: ' + propertyStyle + ', ' + fallbackProperty + '; ';              style += CSS_PREFIX + 'transition-duration: ' + timings.transitionDurationStyle + ', ' + timings.transitionDuration + 's; ';            } | 
