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

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

Moderators: helmut, XnTriq, xnview, Dreamer

Posts: 22
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.

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
There are two indicators, left and right most position.
Two indicators, left most position, but now the right indicator is offset from the right.
Two indicators, left most and right of center.
Three indicators, left, center and right
Seven indicators, left most, the rest are evenly spaced but none of them are at the center or at the right most position.
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.