Closed
Bug 1323109
Opened 8 years ago
Closed 8 years ago
[DateTimePicker] Date time picker popup does not open near input box
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
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.
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
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]
Assignee | ||
Updated•8 years ago
|
Attachment #8818182 -
Flags: review?(mconley)
Assignee | ||
Comment 3•8 years ago
|
||
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 4•8 years ago
|
||
mozreview-review |
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+
Updated•8 years ago
|
Flags: needinfo?(mconley)
Updated•8 years ago
|
Blocks: datetime-bugs
Updated•8 years ago
|
No longer blocks: datetime-bugs
Updated•8 years ago
|
Comment hidden (mozreview-request) |
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d2f2bc0b67e2
Fixed date time pickers popup position; r=mconley
Keywords: checkin-needed
Comment 8•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
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.
Description
•