mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
[Time Conductor] Enforce inner minimums on outer changes
This commit is contained in:
parent
f738f84075
commit
ebd8fdeee3
@ -184,8 +184,10 @@ define(
|
|||||||
|
|
||||||
ngModel.inner.start =
|
ngModel.inner.start =
|
||||||
Math.max(ngModel.outer.start, ngModel.inner.start);
|
Math.max(ngModel.outer.start, ngModel.inner.start);
|
||||||
ngModel.inner.end =
|
ngModel.inner.end = Math.max(
|
||||||
Math.max(ngModel.outer.start, ngModel.inner.end);
|
ngModel.inner.start + innerMinimumSpan,
|
||||||
|
ngModel.inner.end
|
||||||
|
);
|
||||||
|
|
||||||
$scope.startOuterText = formatTimestamp(t);
|
$scope.startOuterText = formatTimestamp(t);
|
||||||
|
|
||||||
@ -200,10 +202,12 @@ define(
|
|||||||
ngModel.outer.start
|
ngModel.outer.start
|
||||||
);
|
);
|
||||||
|
|
||||||
ngModel.inner.start =
|
|
||||||
Math.min(ngModel.outer.end, ngModel.inner.start);
|
|
||||||
ngModel.inner.end =
|
ngModel.inner.end =
|
||||||
Math.min(ngModel.outer.end, ngModel.inner.end);
|
Math.min(ngModel.outer.end, ngModel.inner.end);
|
||||||
|
ngModel.inner.start = Math.min(
|
||||||
|
ngModel.inner.end - innerMinimumSpan,
|
||||||
|
ngModel.inner.start
|
||||||
|
);
|
||||||
|
|
||||||
$scope.endOuterText = formatTimestamp(t);
|
$scope.endOuterText = formatTimestamp(t);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user