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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js

Issue 672173003: Files.app: Fix the order of ProgressCenterItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js b/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
index 9f9fce323cf89c0a46ce1f44e260b1ddf00773bc..99686a787d236bc16a31b63eef40cddcd9ee57fc 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
@@ -310,7 +310,9 @@ ProgressCenterPanel.prototype.updateItem = function(item) {
if (newItem) {
if (!itemElement) {
itemElement = new ProgressCenterItemElement(this.element_.ownerDocument);
- this.openView_.insertBefore(itemElement, this.openView_.firstNode);
+ // Find quiet node and insert the item before the quiet node.
+ this.openView_.insertBefore(
+ itemElement, this.openView_.querySelector('.quiet'));
}
itemElement.update(newItem, targetGroup.isAnimated(item.id));
} else {
« 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