[Frontend] Time Controller Markup and Styling

open #1515
open #117
Tweaks to tick spacing;
This commit is contained in:
Charles Hacskaylo 2015-09-24 14:31:26 -07:00
parent 09f5fa42ab
commit 9e64dfe3b9

View File

@ -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();
} }