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

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

Moderator: Dreamer

Post Reply
Posts: 7
Joined: Fri Apr 26, 2019 7:53 am

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

Post by Anibina » Sat Aug 29, 2020 6:59 pm

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
499 or less.png (24.6 KiB) Viewed 335 times
There are two indicators, left and right most position.
500.png (4.43 KiB) Viewed 335 times
Two indicators, left most position, but now the right indicator is offset from the right.
550.png (4.47 KiB) Viewed 335 times
Two indicators, left most and right of center.
900.png (4.46 KiB) Viewed 335 times
Three indicators, left, center and right
1000.png (4.44 KiB) Viewed 335 times
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 (4.49 KiB) Viewed 335 times
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.

Post Reply