pads: fix pointsize-margin scaling bug

This commit is contained in:
jean-emmanuel 2017-08-25 00:43:13 +02:00
parent c5613bf887
commit 78d147d263
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- buttons: changing `css` background works as expected
- widgets: changing `css` (text) color works as expected
- fader: fix hidden input in horizontal + compact mode
- pads: pips scaling bug
- widgets
- `css` font-sizes apply correctly to all children (better use percents)
- misc

View file

@ -191,7 +191,7 @@ module.exports = class Xy extends _pads_base {
draw() {
var pointSize = this.pointSize * PXSCALE,
margin = (pointSize + 1) * PXSCALE,
margin = (this.pointSize + 1) * PXSCALE,
x = this.faders.x.percentToCoord(this.faders.x.percent),
y = this.faders.y.percentToCoord(this.faders.y.percent)