Index: chrome/browser/resources/options/browser_options.js |
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js |
index c7bcb147c8cd40ab170006dd21461063323f6249..edf02ec4b84b84097f183655575a14ba3b7542fc 100644 |
--- a/chrome/browser/resources/options/browser_options.js |
+++ b/chrome/browser/resources/options/browser_options.js |
@@ -745,6 +745,9 @@ cr.define('options', function() { |
section.style.height = (showing ? 0 : container.offsetHeight) + 'px'; |
section.classList.add('sliding'); |
+ // Force a style recalc before starting the animation. |
Dan Beam
2014/09/10 22:56:34
can you please add a
/** @suppress {uselessCod
michaelpg
2014/09/10 23:19:52
Done.
|
+ section.offsetHeight; |
+ |
if (this.sectionHeightChangeTimeout_ !== null) |
clearTimeout(this.sectionHeightChangeTimeout_); |