mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 07:53:54 +00:00
Bug 1323109 - Fixed date time pickers popup position; r=mconley
MozReview-Commit-ID: DuY4ZVyszBE --HG-- extra : rebase_source : 68e42287c3526bffd5785c20ffd3c12ab3a7fe0b
This commit is contained in:
parent
4f285bd583
commit
d9cd33f405
@ -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");
|
||||
|
@ -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();
|
||||
},
|
||||
|
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/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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user