adminbar: Layer short timeline events above long ones.

This commit is contained in:
Max Goodman
2013-03-12 16:33:54 -07:00
parent 1fa58d5a7c
commit cd46d13ef3

View File

@@ -148,7 +148,8 @@ r.adminbar.TimingBarGraph = Backbone.View.extend({
.attr('title', key + ': ' + eventDuration + 's')
.css({
left: pos(timing.get('start') - startBound) + '%',
right: pos(endBound - timing.get('end')) + '%'
right: pos(endBound - timing.get('end')) + '%',
zIndex: 1000 - Math.min(800, Math.floor(timing.duration() * 100))
})
)
}, this)