|
|
DescriptionAlign text-fields/drop-down-fields on Payment Request form.
-- When we click on a text-field, the title text moves, so the best way
to make it permanently aligned is to make all the drop-down fields
take a full line.
BUG=707860
Review-Url: https://codereview.chromium.org/2791363002
Cr-Commit-Position: refs/heads/master@{#462831}
Committed: https://chromium.googlesource.com/chromium/src/+/4ba9b212af6288fea45140610770a198d0241a58
Patch Set 1 #
Total comments: 2
Patch Set 2 : Small Mistake #
Depends on Patchset: Messages
Total messages: 31 (17 generated)
The CQ bit was checked by parastoog@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== A drop-down should take a line to be always aligend with text-fields. BUG= ========== to ========== A drop-down field should take a line to be always aligned with text-fields. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 ==========
parastoog@google.com changed reviewers: + sebsg@chromium.org
Description was changed from ========== A drop-down field should take a line to be always aligned with text-fields. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 ========== to ========== Align text-fields/drop-down fields on Payment Request form. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 ==========
Description was changed from ========== Align text-fields/drop-down fields on Payment Request form. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 ========== to ========== Align text-fields/drop-down-fields on Payment Request form. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 ==========
parastoog@google.com changed reviewers: + mathp@chromium.org
Nice! Small comment https://codereview.chromium.org/2791363002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java (right): https://codereview.chromium.org/2791363002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java:331: useFullLine = nextFieldModel.isFullLine() There is small change in behavior in your function. In the previous behavior, if useFullLine was true, it could never be set to false in with the next field. with your new one, if useFullLine was true, but the nextField is not a full line nor a dropdown, you will set it to false. Maybe that was intended, if that was the case, all good. Otherwise, you should probably do something like if (nextFieldModel.isFullLine() || nextFieldModel.getInputTypeHint() == ...) useFullLine = true;
The CQ bit was checked by parastoog@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by parastoog@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2791363002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java (right): https://codereview.chromium.org/2791363002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java:331: useFullLine = nextFieldModel.isFullLine() My mistake :P On 2017/04/03 19:13:36, sebsg wrote: > There is small change in behavior in your function. In the previous behavior, if > useFullLine was true, it could never be set to false in with the next field. > with your new one, if useFullLine was true, but the nextField is not a full line > nor a dropdown, you will set it to false. > > Maybe that was intended, if that was the case, all good. Otherwise, you should > probably do something like > > if (nextFieldModel.isFullLine() || nextFieldModel.getInputTypeHint() == ...) > useFullLine = true; Done.
code LGTM, Can you add a screenshot of the new UI in the bug so everyone can see? :)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/04/03 19:56:31, sebsg wrote: > code LGTM, Can you add a screenshot of the new UI in the bug so everyone can > see? :) Done.
lgtm
parastoog@google.com changed reviewers: + rouslan@chromium.org
rouslan@chromium.org: Please review changes in
rouslan@chromium.org: Please review changes in
Screenshot?
On 2017/04/04 14:41:54, ಠ_ಠ wrote: > Screenshot? I added them to the bug description.
This fix LGTM short term. Please work on a better solution next.
The CQ bit was checked by parastoog@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 20001, "attempt_start_ts": 1491559565770470, "parent_rev": "b1586e233f50e895739f3bcf2b028c230c16594a", "commit_rev": "4ba9b212af6288fea45140610770a198d0241a58"}
Message was sent while issue was closed.
Description was changed from ========== Align text-fields/drop-down-fields on Payment Request form. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 ========== to ========== Align text-fields/drop-down-fields on Payment Request form. -- When we click on a text-field, the title text moves, so the best way to make it permanently aligned is to make all the drop-down fields take a full line. BUG=707860 Review-Url: https://codereview.chromium.org/2791363002 Cr-Commit-Position: refs/heads/master@{#462831} Committed: https://chromium.googlesource.com/chromium/src/+/4ba9b212af6288fea45140610770... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/4ba9b212af6288fea45140610770...
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2819623002/ by sebsg@chromium.org. The reason for reverting is: The feature for which this CL was made was reverted, and this CL breaks the UI of the credit card editor. Both should be landed together when fixed.. |