I have button with icon and overflowText without text.

When I call method setIconCls overflow item text becomes empty.

Example: https://fiddle.sencha.com/#view/editor&fiddle/2aec

I added an override as follow to fix that


Code:
Ext.define('Poly.override.layout.container.boxOverflow.Menu', {
    override: 'Ext.layout.container.boxOverflow.Menu',

    onButtonAttrChange: function (btn) {
        var clone = btn.overflowClone;

        clone.suspendLayouts();
        clone.setText(btn.overflowText || btn.text); // overrided string
        clone.setIcon(btn.icon);
        clone.setIconCls(btn.iconCls);
        clone.resumeLayouts(true);
    }
});