fader: fix hdpi scaling with compact width optimization
This commit is contained in:
parent
c299c92f09
commit
054efebc83
1 changed files with 11 additions and 7 deletions
|
|
@ -158,14 +158,18 @@ module.exports = class Fader extends _sliders_base {
|
|||
}
|
||||
|
||||
resizeHandle(){
|
||||
super.resizeHandle(...arguments)
|
||||
if (this.widgetData.compact) {
|
||||
if (this.widgetData.horizontal) {
|
||||
this.canvas[0].setAttribute('height', 1)
|
||||
} else {
|
||||
this.canvas[0].setAttribute('width', 1)
|
||||
super.resizeHandle(...arguments)
|
||||
|
||||
if (this.widgetData.compact) {
|
||||
if (this.widgetData.horizontal) {
|
||||
this.canvas[0].setAttribute('height', 1)
|
||||
} else {
|
||||
this.canvas[0].setAttribute('width', 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (CANVAS_SCALING != 1) this.ctx.scale(CANVAS_SCALING, CANVAS_SCALING)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue