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

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

Issue 14096016: Restyled Files.app's file list, including scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index d91e4760e6037c59d6ec6368ddb773f337e70f84..657843ebe5876dd552a0613652998c02231764fb 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -886,10 +886,11 @@ DialogType.isModal = function(type) {
// Populate the static localized strings.
i18nTemplate.process(this.document_, loadTimeData);
- // Initialize the new header.
+ // Initialize the new header and arrange the file list.
if (util.platform.newUI()) {
this.dialogDom_.querySelector('#app-name').innerText =
chrome.runtime.getManifest().name;
+ this.table_.normalizeColumns();
}
};
@@ -1322,6 +1323,8 @@ DialogType.isModal = function(type) {
}, 0);
} else {
this.table_.redraw();
+ if (util.platform.newUI())
+ this.table_.normalizeColumns();
}
if (!util.platform.newUI())
@@ -1680,6 +1683,8 @@ DialogType.isModal = function(type) {
* the table layout.
*/
FileManager.prototype.shouldShowOfflineColumn = function() {
+ if (util.platform.newUI())
+ return false;
return this.directoryModel_.getCurrentRootType() === RootType.DRIVE;
};

Powered by Google App Engine
This is Rietveld 408576698