Skip to content
Browse files

Update #283 - Fixed bug in timeline which meant sub ms events didn't …

…quite show as true as they should
  • Loading branch information...
1 parent 31aa6af commit 2abbb618c6a1cf7380152baa016d670232485838 @avanderhoorn avanderhoorn committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 source/Glimpse.JavaScript/glimpse.js
  2. +1 −1 source/Glimpse.JavaScript/glimpse.timeline.js
View
2 source/Glimpse.JavaScript/glimpse.js
@@ -2748,7 +2748,7 @@ glimpse.tab = (function($, pubsub, data) {
left = (event.startPoint / timeline.data.duration) * 100,
rLeft = Math.round(left),
actualWidth = (event.duration / timeline.data.duration) * 100,
- width = actualWidth < 1 ? 0 : actualWidth,
+ width = actualWidth == 0 ? 0 : actualWidth,
rWidth = Math.round(width),
widthStyle = (width > 0 ? 'width:' + width + '%' : ''),
maxStyle = (width <= 0 ? 'max-width:7px;' : ''),
View
2 source/Glimpse.JavaScript/glimpse.timeline.js
@@ -191,7 +191,7 @@
left = (event.startPoint / timeline.data.duration) * 100,
rLeft = Math.round(left),
actualWidth = (event.duration / timeline.data.duration) * 100,
- width = actualWidth < 1 ? 0 : actualWidth,
+ width = actualWidth == 0 ? 0 : actualWidth,
rWidth = Math.round(width),
widthStyle = (width > 0 ? 'width:' + width + '%' : ''),
maxStyle = (width <= 0 ? 'max-width:7px;' : ''),

0 comments on commit 2abbb61

Please sign in to comment.
Something went wrong with that request. Please try again.