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

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: add the check in FileTableColumnModel.normalizeWidth 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
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 8048e9e8303b69fc87604b53cea44c8de5bf11df..3924334aedadf35d975d2918e537123b12fe369e 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();
mtomasz 2013/05/08 01:13:26 Is this related to this patch?
yoshiki 2013/05/08 03:55:25 This line fixes the left-bar issue which is the or
}
if (!util.platform.newUI())

Powered by Google App Engine
This is Rietveld 408576698