Jump to content

Small Bug in Layers Stack Window.


Recommended Posts

I'm getting this strange bug in 2.6 Beta1. Whenever the Layers Stack window is shorter than needed to view all the layers at once, the vertical scroll bar appears on the right side. No, this isn't the bug...

The bug comes in here: regardless of how wide I make the window, I always get a horizontal scrollbar because the vertical scrollbar overlays the visibility checkbox. Since I suck at discribing things without pictures...

layerstack.png

None of the layer names are long enough to be pushing the checkbox off the screen at that width, but I can't access the visibility checkbox without scrolling over. Then I can't see the full layer preview to select the layer I want without scrolling back. It sounds small, but it really gets annoying quickly...

I haven't noticed this until today, so I'm not sure whether it's been in 2.6 from the beginning, it's new for Beta1, or it's something screwy with my computer.

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

layerstack2.png

Alright, after a little more testing...

It seems it only happens when the window is at a certain height. To reproduce this behavior:

1. Open up Paint.NET

2. Press the New Layer button in the stack window at least 3 times. It works no matter how many layer you have, but 4 layers is the minimun due to the Layer Stack minimum height restriction.

3. Resize the stack window so that the Background layer just goes off the bottom. You should see the errant draw here.

4. Watch the top boundary of the Background layer preview as you resize the Stack window smaller vertically. Just as the background preview would go off screen completely, the Stack window will redraw properly.

Alternately, you can size the Stack window to its minimum height while you have three layers in the image, then add a fourth layer. The Stack window will be redrawn with the visibility checkboxes off the side. But if you then drag the Stack window taller, then shrink it back to its minimum height, it will be redrawn properly.

I dunno. Maybe you can understand that?

<_<

I am not a mechanism, I am part of the resistance;

I am an organism, an animal, a creature, I am a beast.

~ Becoming the Archetype

Link to comment
Share on other sites

Dang it you always catch everything Dan.

Turns out it's really not that easy to make sure that the horizontal scrollbar is scarce. The order of events isn't clearly defined, at least I haven't been able to find a good definition.

Anyway, bug filed. Thanks.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Ok, should be fixed for Beta 2.

I tell ya, getting layout to work on a resizable when you don't want there to be a horizontal scrollbar is an enormous pain. I'm thinking I want to rewrite this darn thing anyway, for various reasons, but it should at least work now.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...