Closed Bug 1323109 Opened 7 years ago Closed 7 years ago

[DateTimePicker] Date time picker popup does not open near input box

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla53
Tracking Status
firefox53 --- verified

People

(Reporter: scottwu, Assigned: scottwu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [milestone4])

Attachments

(1 file)

Date time pickers should open near the input box. And according to the visual spec, the popup should open directly below the input box, with its left side align with the input box.
I didn't actually see the UI on Nightly yet, but this bug sounds to be a "visual alignment" to be work on within current milestone (Date picker MVP).
Whiteboard: [milestone4]
Attachment #8818182 - Flags: review?(mconley)
The x & y coordinates were set incorrectly, so that the popup opens at the wrong place most of the time, except when the input box is on the top left. A css stylesheet is also created for the popup, which overrides the rules that shifts the arrowpanel slightly.

Mike, does this look okay to you? Thanks in advance :)
Flags: needinfo?(mconley)
Comment on attachment 8818182 [details]
Bug 1323109 - Fixed date time pickers popup position;

https://reviewboard.mozilla.org/r/98306/#review98858

Thanks!

::: toolkit/modules/DateTimePickerHelper.jsm:144
(Diff revision 1)
>        return;
>      }
>      this.picker.loadPicker(type, detail);
>      // The arrow panel needs an anchor to work. The popupAnchor (this._anchor)
>      // is a transparent div that the arrow can point to.
> -    this.picker.openPopup(this._anchor, "after_start", rect.left, rect.top);
> +    this.picker.openPopup(this._anchor, "after_start", 0, 0);

Whoops. :/ Good catch!
Attachment #8818182 - Flags: review?(mconley) → review+
Flags: needinfo?(mconley)
Thanks Mike! Rebased to central.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d2f2bc0b67e2
Fixed date time pickers popup position; r=mconley
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/d2f2bc0b67e2
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Verified as fixed using the latest Nightly 54.0a1(Build ID: 20170201030207) and latest Aurora 53.0a2(Build ID: 20170201004003)on Ubuntu 16.04 and Mac OS X 10.10.

The issue is still reproducible on Windows. I filed bug 1332242.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: