Full width spacers in vertical toolbars

The new, editable spacers are really useful - great feature. The labels can even be colorized! :smiling_face:

I've played around with adding them to a vertical toolbar now (in v13.6.6).
If they are not in "full width" mode, they work as expected, with adjustable height. Very nice. (An option to horizontally center the text would be great but that's not important.)

However, turning on "full width" (which I thought would work as "full height") messes up the display,
sometimes overwriting other buttons and/or pushing them down out of view. The behavior seems to be a bit random and I can't figure out why it changes. Weird...

Actually, even without "full width" the vertical toolbar spacers don't always behave. Is this one trying to show a non-existant icon above the label?

image

I can't reproduce this; they work OK for me.

Seeing the whole window, and a copy of the toolbar in question, might reveal something.

Ok, here's my test setup with two vertical toolbars:

The spacer in the left toolbar is set to show its label but not to full width. For some reason it seems to show an empty icon (which the one in the other toolbar doesn't do.)

I moved the spacer to the bottom (not very useful, I know) and decreased the window heigt until the spacer becomes too large for the window. The little "overrun" indicator is shown but only opens to a bit of empty space:

image

This happens for horizontal spacers as well, btw., and I guess it's really my own fault for adding a pointless spacer...

The right toolbar has 15 buttons and a spacer set to full width between buttons 9 and 10. Though it correctly fills the space, the screenshot already shows something is going wrong. Here's a video as well:

Setting the left spacer to full width leads to the same erratic behavior:

Here are the toolbars:
left.dop (5.7 KB)
right.dop (2.7 KB)

If I can provide anything else of use, please let me know.

Here, I removed "full width" from the right spacer and it's completely fine:

Many thanks! We've worked out what's wrong and have made a fix for the next beta.

1 Like

I just tested the changes in 13.6.8 and the graphics issues with the right toolbar (see above) have disappeared. :white_check_mark:

However, the spacer in the left toolbar still tries to show an icon. And I believe I found the reason: In Customize -> Toolbars -> Options the Image State is set to On. Once I switch it to Default or Off, the issue disappears.

BTW I also found that the length of a spacer's label isn't taken into account when calculating the toolbar width:
image

Don't know it that was intended...

It's intended as the reason for spacers-with-labels is to be able to show the window title (when the titlebar is turned off), where you'd want a very long title to be truncated rather than push other elements off the toolbar.

But you could get what you want by using a regular label, with spaces before and after it.

Ok, yes, that makes sense. It was just an accidental find anyway.
My main point was the "empty icon"...

The icon has been fixed for the next beta. Many thanks.

1 Like

Tried it in 13.6.9 and it all works as expected now. And you even added the "centered" option :smiley: - thanks a lot!

1 Like