Closed Bug 1060230 Opened 10 years ago Closed 10 years ago

CopyPaste Tip overlap with Date/Time Selector

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mnjul, Assigned: gduan)

References

Details

(Whiteboard: [p=2])

Attachments

(2 files)

Attached image 2014-08-29-12-07-31.png
STR:
1. With the new CopyPaste functionality, copy some text from a textfield.
2. Focus a date/time input field. For example, launch UI Tests app and go to Keyboard page -- there are a few date/time/datetime... inputs available.

Actual Results:
At step 2, the date/time selector shows up and also the "Paste" tip shows on top of the selector (see attached screenshot)

Expected Results:
At step 2, only the date/time selector shows up and not the "Paste" tip.
The root cause is, inputmethod-contextchange event is fired later than selectionchange, so the text_selection dialog is triggered to launched later than value_selector dialog.
Sorry, inputmethod-contextchange event is earlier, not later.
Attached file PR to master
Hi Alive,
I'd need your feedback on this patch. The pb is as you have suspected, input-contextchange is fired earlier than selectionchange, that's why text_selection dialog overlap on value_selector dialog. I think there's no direct event to hide text_selection dialog ?

Please let me know if there's any better fix for it. Thanks.
Attachment #8482524 - Flags: feedback?(alive)
Assignee: nobody → gduan
Whiteboard: [p=2]
Priority: -- → P2
Comment on attachment 8482524 [details] [review]
PR to master

Please use shown/hidden event.
Attachment #8482524 - Flags: feedback?(alive) → feedback+
Comment on attachment 8482524 [details] [review]
PR to master

Hi Tim,
Since inputmethod-contextchange is fired earlier than selectionchange, text_selection dialog should check if value_selector is already showed or not.
I've addressed comment 4 and added test cases for it.

could you help to review this patch?
Thanks.
Attachment #8482524 - Flags: review?(timdream)
Attachment #8482524 - Flags: review?(timdream) → review+
Thanks,
master: https://github.com/mozilla-b2g/gaia/commit/f1dfe20bfaee93e789c31f3604249fa24eb6f3fd
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Depends on: 1072759
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: