1
0
Fork 0
forked from 0x2620/oxjs

add close buttons to controls, better behaviour of mute vs volume 0, make range properly resizable, hide title overflow

This commit is contained in:
rolux 2011-05-17 09:05:21 +02:00
commit 4ca5734a9d
4 changed files with 68 additions and 31 deletions

View file

@ -36,7 +36,7 @@ Ox.Range = function(options, self) {
min: 0,
orientation: 'horizontal',
step: 1,
size: 128,
size: 128, // fixme: shouldn't this be width?
thumbSize: 16,
thumbValue: false,
trackColors: [],
@ -191,12 +191,18 @@ Ox.Range = function(options, self) {
self.trackColorsStart = self.thumbSize / 2 / self.options.size;
self.trackColorsStep = (self.options.size - self.thumbSize) /
(self.trackColors - 1) / self.options.size;
that.css({
width: self.options.size + 'px'
});
self.$track && self.$track.css({
width: (self.trackSize - 2) + 'px'
});
self.$thumb && self.$thumb.options({
width: self.thumbSize
});
if (self.$thumb) {
self.$thumb.options({
width: self.thumbSize
});
setThumb();
}
}
function setThumb(animate) {