MarcelH
February 13, 2022, 3:50pm
#1
When trying to show missing toolbar items that cannot show due to the available width:
juce::Toolbar::showMissingItems()
I’m hitting a jassert in
juce_PopupMenu.cpp:1894
complaining about the lack of name for screen readers (accessibility).
Supplying a name at juce_Toolbar.cpp:545
m.addCustomItem (1, std::move (comp), nullptr, "missing_items");
seems to fix it…
Not looked much into accessibility yet, but should I have done something different from my end?
The toolbar component itself is named.
On the latest juce 6.1.5 develop.
reuk
February 23, 2022, 4:45pm
#2
Thanks for reporting. I’ve fixed the issue here:
committed 01:41PM - 14 Feb 22 UTC
I also noticed that the name of the disclosure button was a bit misleading when it appeared on a toolbar, so I’ve fixed that too:
committed 01:56PM - 14 Feb 22 UTC
This button is used to access hidden toolbar items, as well as hidden
tabs. The … old "tabs" name was misleading when the button was located in
a toolbar.
Finally, I added a fix for an issue that sometimes prevented the disclosure button from showing at all:
committed 01:34PM - 14 Feb 22 UTC
Previously, setting a new look and feel would create a new missing-items
button,… but would not add it to the toolbar or set the onClick callback.