The MaxSizePixel and MinSizePixel sprite attributes allow the API user to specify maximum and minimum sizes for the sprite. These bounds are applied after all other size computations, such as scaling and geometric zoom.
Currently however, these bounds assume a devicePixelRatio of 2. For other device pixel ratios, these values are scaled incorrectly.
Fix the application of max and min size pixel bounds to account for different devicePixelRatio values.
The
MaxSizePixel
andMinSizePixel
sprite attributes allow the API user to specify maximum and minimum sizes for the sprite. These bounds are applied after all other size computations, such as scaling and geometric zoom.Currently however, these bounds assume a
devicePixelRatio
of 2. For other device pixel ratios, these values are scaled incorrectly.Fix the application of max and min size pixel bounds to account for different
devicePixelRatio
values.