You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On at least a smaller (20x60) vertical linear gauge, the black "background" image is visible starting much too high (relative to the scale and displayed value) and finishing much too low (relative to the scale and displayed value, which are in good alignment).
This appears to be due to magic numbers from AbstractLinear (line 1027 with 0.1276 and 0.7280 for a vertical gauge, & line 1032 with 0.139 and 0.735 for horizontal gauges) and Linear (see line 539/540 and 577/578 with slightly different magic numbers) not being used in BackgroundImageFactory which is using a fixed 16pixel & 32pixel offset in line 431.
Fixing the alignment (so that the magic numbers are used for the "alignment" direction of the rectangle, but the fixed offset is still used for the "other" axis of the rectangle) is complicated by BackgroundImageFactory not having a parameter to indicate horizontal vs. vertical alignment (to which the magic numbers are tied). I suspect the createLinearBackground function will need a new argument.
I believe there is a border image (still visible when setBackgroundVisible is set false) that outlines the background, that has the same alignment problem, but I haven't tracked down what function that is.
The text was updated successfully, but these errors were encountered:
On at least a smaller (20x60) vertical linear gauge, the black "background" image is visible starting much too high (relative to the scale and displayed value) and finishing much too low (relative to the scale and displayed value, which are in good alignment).
This appears to be due to magic numbers from AbstractLinear (line 1027 with 0.1276 and 0.7280 for a vertical gauge, & line 1032 with 0.139 and 0.735 for horizontal gauges) and Linear (see line 539/540 and 577/578 with slightly different magic numbers) not being used in BackgroundImageFactory which is using a fixed 16pixel & 32pixel offset in line 431.
Fixing the alignment (so that the magic numbers are used for the "alignment" direction of the rectangle, but the fixed offset is still used for the "other" axis of the rectangle) is complicated by BackgroundImageFactory not having a parameter to indicate horizontal vs. vertical alignment (to which the magic numbers are tied). I suspect the createLinearBackground function will need a new argument.
I believe there is a border image (still visible when setBackgroundVisible is set false) that outlines the background, that has the same alignment problem, but I haven't tracked down what function that is.
The text was updated successfully, but these errors were encountered: