Viewer in text or hex mode bogus scrollbars

There is a visual issue in the Viewer in the text or Hex view mode: when its window is resized and then maximized, the scrollbars remain painted on the window (they aren't interactable).
Happens on Windows 11, dark theme at least.

Uncleared scrollbar

Here's how to try to reproduce it:

  1. In the Opus' Image viewer, open e.g., Visual Studio .sln file and switch to a Hex mode (or remain in the text mode).
  2. Make the Viewer window smaller -- not only so that the scrollbars appear, but also because the act of manually resizing the window causes the issue to manifest in the next step.
  3. Now maximize the window using the maximize button and observe the scrollbars aren't cleared. They disappear if the text is selected.
    • The bogus scrollbars may either be centered or sometimes in the top left area (depending on the window size before being maximized)
    • If the issue didn't manifest, restore the window and resize it manually to a smaller size first and try maximizing again.

Actually a Windows bug, after getting to the bottom of it. We'll have a workaround in the next update.

2 Likes

Something similar just happened in the Notepad: maximized it and its status bar was overpainted and the text area truncated and corrupted. Looks like a recent Windows update caused this.

I guess it might be related to the update KB5040442 (or thereabouts): Microsoft says black borders in Windows 11 File Explorer is a feature, not a bug