Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: chrome/browser/resources/pdf/toolbar_manager.js

Issue 1310353003: Material PDF: Variety of minor UI bugfixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/pdf/index-material.css ('k') | chrome/test/data/pdf/toolbar_manager_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/toolbar_manager.js
diff --git a/chrome/browser/resources/pdf/toolbar_manager.js b/chrome/browser/resources/pdf/toolbar_manager.js
index a47d04358c82d8bef680437880c3c839482289be..a8b6519d3ecdc7fdcc22b3b10235565ec683974f 100644
--- a/chrome/browser/resources/pdf/toolbar_manager.js
+++ b/chrome/browser/resources/pdf/toolbar_manager.js
@@ -62,7 +62,6 @@ function ToolbarManager(window, toolbar, zoomToolbar) {
this.sideToolbarAllowedOnlyTimer_ = null;
this.window_.addEventListener('resize', this.resizeDropdowns_.bind(this));
- this.resizeDropdowns_();
}
ToolbarManager.prototype = {
@@ -74,6 +73,7 @@ ToolbarManager.prototype = {
enableToolbars: function() {
this.toolbar_.hidden = false;
this.zoomToolbar_.hidden = false;
+ this.resizeDropdowns_();
},
showToolbarsForMouseMove: function(e) {
« no previous file with comments | « chrome/browser/resources/pdf/index-material.css ('k') | chrome/test/data/pdf/toolbar_manager_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698