Yes, this should (soon) be doable! In a VerticalFlyout subclass, you'll want to:
* Override getWidth() to return a fixed width for the flyout (this will require Blockly v12; we have an rc/v12.0.0 branch but I'm not sure if we have a beta with this functionality available yet)
* Override init() to swap out this.workspace_.scrollbar for a ScrollbarPair with both the addHorizontal and addVertical constructor arguments set to true (the default implementation only enables the scrollbar for the direction the flyout is oriented)
* Override setMetrics_() to include
this clause from the horizontal flyout implementation and then call super.
That way, the flyout won't automatically expand to fits its blocks (due to getWidth() returning a fixed value), the scrollbar will have a horizontal scrollbar, and the flyout's workspace will be scrolled when the horizontal scrollbar is scrolled.
- Aaron