Bug 1337319 - Order month and year spinners based on locale datetime format r=mconley

MozReview-Commit-ID: AmAVjybJZ6A
This commit is contained in:
Scott Wu
2017-02-16 15:57:54 +08:00
parent 0888d38786
commit 0392513abd
3 changed files with 25 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ function Spinner(props, context) {
* }
*/
_init(props) {
const { setValue, getDisplayString, hideButtons, rootFontSize = 10 } = props;
const { id, setValue, getDisplayString, hideButtons, rootFontSize = 10 } = props;
const spinnerTemplate = document.getElementById("spinner-template");
const spinnerElement = document.importNode(spinnerTemplate.content, true);
@@ -72,6 +72,9 @@ function Spinner(props, context) {
this.elements.spinner.style.height = (ITEM_HEIGHT * viewportSize) + "rem";
if (id) {
this.elements.container.id = id;
}
if (hideButtons) {
this.elements.container.classList.add("hide-buttons");
}