smoothscale: Prevent negative timeouts

Merged Jean Felder requested to merge wip/jfelder/fix-smoothscale-width into master

Smoothscale timeout depends on the scale's width and padding. Apparently in some configurations (maybe a custom theme or a custom scaling), this width can become negative. This results in a crash as a timeout cannot be negative.

Add a max bound to ensure to ensure that the width variable cannot be smaller than 1.

Closes: #244 (closed)

Merge request reports