Skip to content

Commit efc8f72

Browse files
committed
force ruler to draw
1 parent 8ec52b8 commit efc8f72

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/timeline/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<!-- JQuery & Bootstrap StyleSheets -->
3939
<link type="text/css" rel="stylesheet" href="media/css/bootstrap.min.css">
4040
</head>
41-
<body tl-body ng-controller="TimelineCtrl" ng-cloak>
41+
<body tl-body ng-controller="TimelineCtrl" ng-cloak onload="forceDrawRuler()">
4242

4343
<!-- RULER NAME (left of screen) -->
4444
<div tl-rulertime id="ruler_label">

src/timeline/js/functions.js

+6
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,9 @@ function setSelections(scope, element, id) {
468468
// Apply scope up to this point
469469
scope.$apply(function () {});
470470
}
471+
472+
function forceDrawRuler() {
473+
var scroll = document.querySelector('#scrolling_tracks').scrollLeft;
474+
document.querySelector('#scrolling_tracks').scrollLeft = 10;
475+
document.querySelector('#scrolling_tracks').scrollLeft = scroll;
476+
}

0 commit comments

Comments
 (0)