Skip to content

Commit

Permalink
Fix width if labelAlign is top
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Aug 9, 2024
1 parent 1a06bf2 commit be65f68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/js/pimcore/object/tags/rgbaColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ pimcore.object.tags.rgbaColor = Class.create(pimcore.object.tags.abstract, {
if (this.fieldConfig.labelWidth) {
labelWidth = this.fieldConfig.labelWidth;
}
width = this.sumWidths(width, labelWidth);
if (!this.fieldConfig.labelAlign || 'left' === this.fieldConfig.labelAlign) {
width = this.sumWidths(width, labelWidth);
}

this.selector = new Ext.ux.colorpick.Selector({
showPreviousColor: true,
Expand Down

0 comments on commit be65f68

Please sign in to comment.