Offset window, nr and position of indicators below sliders depend on image size

*** Please report new bugs here! ***

Moderator: Dreamer

Anibina
Posts: 16
Joined: Fri Apr 26, 2019 7:53 am

Offset window, nr and position of indicators below sliders depend on image size

Post by Anibina »

XnView: MP 0.85 - 32 bit/64 bit
OS: Windows 1903

In the Offset window, the number and locations of the small indicators (vertical lines) under the Offset X and Y sliders, depend on the image size.

Effect:
Visual bug
The slider indicators seem to be broken, since they sometimes (depending on image size) appear in strange locations.

To reproduce:
1. Open an image
2. Resize it below 500px (499 or less)
3. Open from the top menu: Image > Offset...

Actual behaviour (bug :bug:):
499px or less
There is only one small vertical line below the Offset X and Y sliders,
below the left most position of the sliders.
499 or less.png
500px
There are two indicators, left and right most position.
500.png
550px
Two indicators, left most position, but now the right indicator is offset from the right.
550.png
900px
Two indicators, left most and right of center.
900.png
1000px
Three indicators, left, center and right
1000.png
3333px
Seven indicators, left most, the rest are evenly spaced but none of them are at the center or at the right most position.
3333.png
Expected behaviour:
I'm not sure how many vertical lines there should be below the sliders,
but if there's one at the beginning, then there probably should be one at the end.

It's easy to reset back to the center with the button to the right of the slider,
or by scrolling until the input box shows 0, or by typing 0 in it.

But it might still be good to have a center indicator, then one can see visually that one is close to the center.
You do not have the required permissions to view the files attached to this post.