fader: remove default 100% size, set a decent one
This commit is contained in:
parent
7b4f7bd05d
commit
8387b77fe3
2 changed files with 3 additions and 10 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
--color-knob: var(--color-custom);
|
||||
padding: 1rem;
|
||||
width:100rem;
|
||||
height:100%;
|
||||
height:300rem;
|
||||
&.horizontal {
|
||||
height:130rem;
|
||||
width:100%
|
||||
width:300rem
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue