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

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

Issue 494003002: Update directory tree's scrollbar when the progress center mutates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 3ac1db6e7c3c915c9d45f9c9fb964f409bf47289..c2452c11423ce76af04321622c682aa8c0aab539 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -1045,6 +1045,14 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
fakeEntriesVisible);
this.directoryTree_.dataModel = new NavigationListModel(
this.volumeManager_, this.folderShortcutsModel_);
+
+ // Visible height of the directory tree depends on the size of progress
+ // center panel. When the size of progress center panel changes, directory
+ // tree has to be notified to adjust its components (e.g. progress bar).
+ var observer = new MutationObserver(
+ this.directoryTree_.relayout.bind(this.directoryTree_));
+ observer.observe(this.progressCenterPanel_.element,
+ {subtree: true, attributes: true, childList: true});
};
/**
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698