Skip to content

Commit

Permalink
labelWidth as const
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Aug 9, 2024
1 parent be65f68 commit b3ea53d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions public/js/pimcore/object/tags/rgbaColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ pimcore.object.tags.rgbaColor = Class.create(pimcore.object.tags.abstract, {
},

getLayoutEdit: function () {
let labelWidth = 100;
const labelWidth = this.fieldConfig.labelWidth ? this.fieldConfig.labelWidth : 100;
let width = this.fieldConfig.width ? this.fieldConfig.width : 400;
if (this.fieldConfig.labelWidth) {
labelWidth = this.fieldConfig.labelWidth;
}
if (!this.fieldConfig.labelAlign || 'left' === this.fieldConfig.labelAlign) {
width = this.sumWidths(width, labelWidth);
}
Expand Down

0 comments on commit b3ea53d

Please sign in to comment.