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

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: 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 | no next file » | 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 8048e9e8303b69fc87604b53cea44c8de5bf11df..55d1e70535e543343d976131ab78ced7b2d723ad 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,11 @@ DialogType.isModal = function(type) {
g.endBatchUpdates();
}, 0);
} else {
+ if (util.platform.newUI()) {
+ if (this.table_.clientWidth > 0)
mtomasz 2013/05/07 08:37:53 Do we need this? What's the purpose of it? If the
mtomasz 2013/05/07 08:44:58 OK, now I see. My repro steps for this are: 1. Ope
mtomasz 2013/05/07 09:15:34 This check for clientWidth > 0 seem to me unnecess
yoshiki 2013/05/07 09:51:04 We need this check. When this.table_.clientWidth=0
+ this.table_.normalizeColumns();
+ }
this.table_.redraw();
- if (util.platform.newUI())
- this.table_.normalizeColumns();
}
if (!util.platform.newUI())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698