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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 14599004: Merge 199418 "Fix wrapping window decoration buttons in the File..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 7 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
Index: chrome/browser/resources/file_manager/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 199675)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -860,6 +860,8 @@
this.filePopup_ = null;
+ this.searchBoxWrapper_ =
+ this.dialogDom_.querySelector('.search-box-wrapper');
this.searchBox_ = this.dialogDom_.querySelector('#search-box');
this.searchBox_.addEventListener(
'input', this.onSearchBoxUpdate_.bind(this));
@@ -1430,6 +1432,10 @@
if (!util.platform.newUI())
this.breadcrumbs_.truncate();
+ // Hide the search box if there is not enough space.
+ if (util.platform.newUI())
+ this.searchBox_.hidden = this.searchBoxWrapper_.clientWidth < 100;
+
this.searchBreadcrumbs_.truncate();
this.updateWindowState_();
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | chrome/browser/resources/file_manager/main_new_ui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698