In portrait though it's like this. There is the merest hint of a (vertical?) scroll bar which does not show in the screen capture, but I can find no way to get to the missing two buttons, and the rounded end after the green icon implies that the entire widget is displayed.
Is there any way to access the right hand buttons?
Should there be a visible indication that this widget is not fully displayed - even a horizontal scrollbar?
I don't know how to do that on my phone, but on my PC that line is identical to what you show except I don't see == $0
(No colours because your CSS disabled)
I think that 6 buttons across a phone screen in portrait is about right, they have roughly the same size as desktop icons.
Still fails if I use provocatively long labels or combine text and icons, would be nice if it could somehow indicate the display is not complete. Even so, it's better than wrapping to a second line IMHO.
This solution or something like it should be the default behaviour. Any thoughts @joepavitt ?
I think no.
By default it should wrap. Otherwise not fitting situation (which will happen almost always) is an issue. And it should have paddings surrounding the readable content because of web standards. And that brings the need of the wrapping closer.
What maybe is reasonable is to have tickbox to turn wrapping off.
You also need to watch out for accessibility issues. Might not be a problem for home use but would certainly be an issue for public use, especially in the EU and UK where there are laws covering accessibility of websites.
Buttons for touch devices need to be a minimum size.
Just to extend this, the initial request for the wrapping come from someone that had 96 buttons in a single button group... so I think wrapping is a sensible default here.