Bug 1323109 - Fixed date time pickers popup position; r=mconley

MozReview-Commit-ID: DuY4ZVyszBE

--HG--
extra : rebase_source : 68e42287c3526bffd5785c20ffd3c12ab3a7fe0b
This commit is contained in:
Scott Wu 2016-12-01 16:45:16 +08:00
parent 4f285bd583
commit d9cd33f405
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

@ -140,7 +140,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/filters.svg (../../shared/filters.svg)
skin/classic/global/icons/find-arrows.svg (../../shared/icons/find-arrows.svg)
skin/classic/global/icons/info.svg (../../shared/incontent-icons/info.svg)