fader: remove default 100% size, set a decent one

This commit is contained in:
jean-emmanuel 2017-06-21 15:54:16 +02:00
parent 7b4f7bd05d
commit 8387b77fe3
2 changed files with 3 additions and 10 deletions

View file

@ -60,14 +60,7 @@ module.exports = class Fader extends _sliders_base {
if (this.getProp('horizontal')) {
this.widget.add(this.container).addClass('horizontal')
if (this.getProp('width') == 'auto' && this.getProp('left') != 'auto') {
this.container.css({'width':'auto', 'right':'0'})
}
} else {
if (this.getProp('height') == 'auto' && this.getProp('top') != 'auto') {
this.container.css({'height':'auto', 'bottom':'0'})
}
}
}
if (this.getProp('compact')) {
this.widget.addClass('compact')