widget.newSlider bug with anchor

Hello,

The newSlider widget object seems to be not affected with anchor change’s.

display.setDefault("anchorX",0) display.setDefault("anchorY",0) widget.newSlider({x=0,y=0,width=100})

look’s equivalent on my huawei y6 display to just

widget.newSlider({x=0,y=0,width=100})

Thanks.

.

Hi @yvandotet,

If you want to position a slider by its top-left corner instead of its center, a much easier approach (IMHO) is to just use its “top” and “left” params instead of “x” and “y” in the constructor.

Brent

Hi @yvandotet,

If you want to position a slider by its top-left corner instead of its center, a much easier approach (IMHO) is to just use its “top” and “left” params instead of “x” and “y” in the constructor.

Brent