forked from 0x2620/oxjs
smaller fixes (tooltip corner cases, block timeline)
This commit is contained in:
parent
1086be2686
commit
9650a29a90
4 changed files with 21 additions and 15 deletions
|
|
@ -31,6 +31,7 @@ Ox.SmallVideoTimelineImage = function(options, self) {
|
|||
self.height = self.options.type == 'player' ? 16 : 24;
|
||||
self.imageHeight = self.options.type == 'player' ? 16 : 18;
|
||||
self.imageTop = self.options.type == 'player' ? 0 : 3;
|
||||
self.timelineTop = self.options.type == 'player' ? 0 : 4;
|
||||
|
||||
that.css({
|
||||
height: self.height + 'px'
|
||||
|
|
@ -43,9 +44,9 @@ Ox.SmallVideoTimelineImage = function(options, self) {
|
|||
})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
top: self.imageTop + 'px',
|
||||
top: self.timelineTop + 'px',
|
||||
width: self.options.width + 'px',
|
||||
height: self.imageHeight + 'px',
|
||||
height: '16px'
|
||||
})
|
||||
.appendTo(that.$element);
|
||||
} else {
|
||||
|
|
@ -57,9 +58,9 @@ Ox.SmallVideoTimelineImage = function(options, self) {
|
|||
.css({
|
||||
position: 'absolute',
|
||||
left: (i * 3600) + 'px',
|
||||
top: self.imageTop + 'px',
|
||||
top: self.timelineTop + 'px',
|
||||
width: (i == self.images - 1 ? self.imageWidth % 3600 : 3600) + 'px',
|
||||
height: self.imageHeight + 'px',
|
||||
height: '16px'
|
||||
})
|
||||
.appendTo(that.$element);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue