widget: clean not-editable css class
This commit is contained in:
parent
8c22384ddb
commit
593ec4c53d
5 changed files with 1 additions and 12 deletions
|
|
@ -23,7 +23,6 @@ class ColorPicker extends UiWidget {
|
|||
snap: true,
|
||||
alpha: true
|
||||
}, parent: this})
|
||||
this.rgb.container.classList.add('not-editable')
|
||||
|
||||
this.container = html`
|
||||
<div class="color-picker">
|
||||
|
|
|
|||
|
|
@ -1180,6 +1180,7 @@ class Widget extends EventEmitter {
|
|||
}
|
||||
this.container.classList.toggle('absolute-position', absolutePos)
|
||||
this.container.classList.toggle('flex-expand', this.getProp('expand'))
|
||||
this.container.classList.toggle('not-editable', this.meta.not_editable)
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -282,10 +282,6 @@ class Clone extends Container() {
|
|||
|
||||
this.container.classList.remove('empty')
|
||||
|
||||
for (var w of this.getAllChildren()) {
|
||||
w.container.classList.add('not-editable')
|
||||
}
|
||||
|
||||
if (checkResize) resize.check(this.widget)
|
||||
|
||||
} else if (this.cloneClass.length) {
|
||||
|
|
|
|||
|
|
@ -138,10 +138,6 @@ class Fragment extends Container() {
|
|||
|
||||
this.container.classList.remove('empty')
|
||||
|
||||
for (var w of this.getAllChildren()) {
|
||||
w.container.classList.add('not-editable')
|
||||
}
|
||||
|
||||
if (checkResize) resize.check(this.widget)
|
||||
|
||||
} else if (this.fragmentClass.length) {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ export default class Rgb extends Widget {
|
|||
pips: false,
|
||||
}, parent: this})
|
||||
this.pad.sendValue = ()=>{}
|
||||
this.pad.container.classList.add('not-editable', 'pad')
|
||||
this.widget.appendChild(this.pad.container)
|
||||
this.pad.on('value-changed',(e)=>{
|
||||
e.stopPropagation = true
|
||||
|
|
@ -77,7 +76,6 @@ export default class Rgb extends Widget {
|
|||
range:{min:0,max:360},
|
||||
decimals:2
|
||||
}, parent: this})
|
||||
this.hue.container.classList.add('not-editable', 'hue')
|
||||
this.widget.appendChild(this.hue.container)
|
||||
this.hue.on('value-changed',(e)=>{
|
||||
e.stopPropagation = true
|
||||
|
|
@ -98,7 +96,6 @@ export default class Rgb extends Widget {
|
|||
input:false,
|
||||
decimals:2
|
||||
}, parent: this})
|
||||
this.alpha.container.classList.add('not-editable', 'alpha')
|
||||
this.widget.appendChild(this.alpha.container)
|
||||
this.alpha.on('value-changed',(e)=>{
|
||||
e.stopPropagation = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue