mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Bug 1323109: [DateTimePicker] Date time picker popup does not open near input box
This commit is contained in:
parent
c030f0de23
commit
f4e1313a58
4 changed files with 16 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
11
toolkit/themes/shared/datetimepopup.css
Normal file
11
toolkit/themes/shared/datetimepopup.css
Normal 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;
|
||||
}
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue