mirror of
https://github.com/nasa/openmct.git
synced 2025-03-06 06:01:51 +00:00
[Frontend] Time Controller Markup and Styling
open #1515 open #117 Tweaks to tick spacing;
This commit is contained in:
parent
09f5fa42ab
commit
9e64dfe3b9
@ -26,7 +26,9 @@ define(
|
|||||||
function (moment) {
|
function (moment) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var DATE_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
var
|
||||||
|
DATE_FORMAT = "YYYY-MM-DD HH:mm:ss",
|
||||||
|
TICK_SPACING_PX = 150;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @memberof platform/commonUI/general
|
* @memberof platform/commonUI/general
|
||||||
@ -59,8 +61,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateSpanWidth(w) {
|
function updateSpanWidth(w) {
|
||||||
// Space about 100px apart
|
tickCount = Math.max(Math.floor(w / TICK_SPACING_PX), 2);
|
||||||
tickCount = Math.max(Math.floor(w / 100), 2);
|
|
||||||
updateTicks();
|
updateTicks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user