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

Unified Diff: ui/file_manager/gallery/js/slide_mode.js

Issue 2509223002: Gallery: Correct tab order of modal tool bar in edit mode. (Closed)
Patch Set: Fix a closure error. Created 4 years, 1 month 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/gallery/js/slide_mode.js
diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js
index e74908f0cc13985f58b32b5c6e77d31e206f0ab2..12e1885a18898c5f8783c50594836b0af1faa8b7 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -409,7 +409,13 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt,
* @private
* @const
*/
- this.editBarMode_ = util.createChild(this.container_, 'edit-modal');
+ this.editBarMode_ =
+ /** @type {!HTMLElement} */ (document.createElement('div'));
+ this.editBarMode_.className = 'edit-modal';
+ // Edit modal bar should be inserted before the bottom toolbar to make the tab
+ // order and visual position consistent.
+ this.container_.insertBefore(
+ this.editBarMode_, document.querySelector('#bottom-toolbar'));
/**
* @type {!HTMLElement}
« 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