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

Issue 15946005: Files.app: Fit the size of search box as its contents size. (Closed)

Created:
7 years, 7 months ago by hirono
Modified:
7 years, 7 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Files.app: Fit the size of search box as its contents size. This CL updated CSS and javascript to make the size of search box fit to its contents size. In the JavaScript funciton 'updateSearchBoxStyles_', we measure the widht of search box text by using TextMeasure class and set the search box size depending on the width. TextMeasure class has a dummy span element. When measuring text size, it sets the text to the dummy span element and obtains its size by using getBoundingClientRect method. This CL also added #search-icon and #search-clear-button elements. Originally these UI parts are implemented as the background image and -webkit-search-cancel-button of the serach box respectively. This way had a trouble about rtl mode thus we need the specific selectors for the rtl mode. On the other hands, current implementation can handle rtl mode without other selectors. BUG=241300, 239292 TEST=manually. rtl mode and legacy UI are also checked. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202375

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Rebased #

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Rebased. #

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -73 lines) Patch
M chrome/browser/resources/file_manager/css/file_manager.css View 1 2 3 6 chunks +76 lines, -69 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 3 4 5 chunks +70 lines, -4 lines 0 comments Download
M chrome/browser/resources/file_manager/main_new_ui.html View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hirono
Yoshiki-san, Could you check the CL of growing search box? Thank you very much.
7 years, 7 months ago (2013-05-24 09:23:20 UTC) #1
yoshiki
https://codereview.chromium.org/15946005/diff/2001/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/15946005/diff/2001/chrome/browser/resources/file_manager/js/file_manager.js#newcode3465 chrome/browser/resources/file_manager/js/file_manager.js:3465: var TEXT_BOX_PADDING = 16; Add the comment '// in ...
7 years, 7 months ago (2013-05-24 09:56:15 UTC) #2
yoshiki
https://codereview.chromium.org/15946005/diff/2001/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/15946005/diff/2001/chrome/browser/resources/file_manager/js/file_manager.js#newcode3872 chrome/browser/resources/file_manager/js/file_manager.js:3872: var styles = getComputedStyle(element, ''); window.getComputedStyle()
7 years, 7 months ago (2013-05-24 09:58:33 UTC) #3
hirono
Fixed. Thank you very much! https://codereview.chromium.org/15946005/diff/2001/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/15946005/diff/2001/chrome/browser/resources/file_manager/js/file_manager.js#newcode3465 chrome/browser/resources/file_manager/js/file_manager.js:3465: var TEXT_BOX_PADDING = 16; ...
7 years, 7 months ago (2013-05-24 10:36:43 UTC) #4
yoshiki
lgtm with nits https://codereview.chromium.org/15946005/diff/16001/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/15946005/diff/16001/chrome/browser/resources/file_manager/js/file_manager.js#newcode3858 chrome/browser/resources/file_manager/js/file_manager.js:3858: /** nit: Please move this class ...
7 years, 7 months ago (2013-05-24 14:49:54 UTC) #5
hirono
Fixed. Thank you! https://codereview.chromium.org/15946005/diff/16001/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/15946005/diff/16001/chrome/browser/resources/file_manager/js/file_manager.js#newcode3858 chrome/browser/resources/file_manager/js/file_manager.js:3858: /** On 2013/05/24 14:49:54, yoshiki wrote: ...
7 years, 7 months ago (2013-05-27 01:58:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/15946005/22001
7 years, 7 months ago (2013-05-27 01:58:40 UTC) #7
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 7 months ago (2013-05-27 06:08:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/15946005/22001
7 years, 7 months ago (2013-05-27 06:13:32 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-27 06:13:52 UTC) #10
Message was sent while issue was closed.
Change committed as 202375

Powered by Google App Engine
This is Rietveld 408576698