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

This commit is contained in:
janekptacijarabaci 2018-02-14 13:24:40 +01:00 committed by Roy Tam
commit f4e1313a58
4 changed files with 16 additions and 1 deletions

View file

@ -11,6 +11,9 @@
xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="datetime-popup"
extends="chrome://global/content/bindings/popup.xml#arrowpanel">
<resources>
<stylesheet src="chrome://global/skin/datetimepopup.css"/>
</resources>
<implementation>
<field name="dateTimePopupFrame">
this.querySelector("#dateTimePopupFrame");

View file

@ -141,7 +141,7 @@ this.DateTimePickerHelper = {
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);
this.addPickerListeners();
},

View file

@ -0,0 +1,11 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
panel[type="arrow"][side="top"],
panel[type="arrow"][side="bottom"] {
margin-left: 0;
margin-right: 0;
}

View file

@ -22,6 +22,7 @@ toolkit.jar:
skin/classic/global/appPicker.css (../../shared/appPicker.css)
skin/classic/global/config.css (../../shared/config.css)
skin/classic/global/datetimeinputpickers.css (../../shared/datetimeinputpickers.css)
skin/classic/global/datetimepopup.css (../../shared/datetimepopup.css)
skin/classic/global/icons/find-arrows.svg (../../shared/icons/find-arrows.svg)
skin/classic/global/icons/info.svg (../../shared/incontent-icons/info.svg)
skin/classic/global/icons/input-clear.svg (../../shared/icons/input-clear.svg)