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

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

Issue 15029002: CrOS Files.app: fix the redraw logic on resize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_table.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 288794c4ebb65a83600cb42889654816f38f8178..9a617766811fa77b2116becc480e2cb196166446 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -936,6 +936,7 @@ DialogType.isModal = function(type) {
this.dialogDom_.querySelector('#app-name').innerText =
chrome.runtime.getManifest().name;
this.table_.normalizeColumns();
+ this.table_.redraw();
}
};
@@ -1410,9 +1411,12 @@ DialogType.isModal = function(type) {
g.endBatchUpdates();
}, 0);
} else {
+ if (util.platform.newUI()) {
+ if (this.table_.clientWidth > 0)
+ this.table_.normalizeColumns();
+ }
this.table_.redraw();
- if (util.platform.newUI())
- this.table_.normalizeColumns();
+ this.volumeList_.redraw();
}
if (!util.platform.newUI())
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_table.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698