diff --git a/apps/common/main/lib/component/ThemeColorPalette.js b/apps/common/main/lib/component/ThemeColorPalette.js index bd64690a3..50ec83d49 100644 --- a/apps/common/main/lib/component/ThemeColorPalette.js +++ b/apps/common/main/lib/component/ThemeColorPalette.js @@ -276,6 +276,9 @@ define([ if (child.length==0) { this.updateCustomColors(); child = el.find('.color-dynamic-' + (this.options.dynamiccolors - 1)); + } else { + if (this.options.hideEmptyColors && this._layoutParams) // recalc indexed + this._layoutParams = undefined; } child.first().removeClass('dynamic-empty-color').removeClass(this.emptyColorsClass).addClass(this.selectedCls).attr('color', color[1]);