mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
Merge pull request #993 from nasa/revert-990-timeline-regression-817
Revert "[Timeline] Provide greater initial width"
This commit is contained in:
commit
e86e955682
@ -122,7 +122,7 @@ define(
|
|||||||
*/
|
*/
|
||||||
width: function (timestamp) {
|
width: function (timestamp) {
|
||||||
var pixels = Math.ceil(toPixels(timestamp * (1 + PADDING)));
|
var pixels = Math.ceil(toPixels(timestamp * (1 + PADDING)));
|
||||||
return Math.max(bounds.width * 2, pixels);
|
return Math.max(bounds.width, pixels);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ define(
|
|||||||
var testPixel = mockScope.scroll.width / 4,
|
var testPixel = mockScope.scroll.width / 4,
|
||||||
testMillis = controller.toMillis(testPixel);
|
testMillis = controller.toMillis(testPixel);
|
||||||
expect(controller.width(testMillis))
|
expect(controller.width(testMillis))
|
||||||
.not.toBeLessThan(mockScope.scroll.width);
|
.toEqual(mockScope.scroll.width);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("provides a width with some margin past timestamp", function () {
|
it("provides a width with some margin past timestamp", function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user