Skip to content

Commit ac7bdbf

Browse files
committed
re fixed #17 - Permission Resource Data Types do not respect the label width from the parent layout container
1 parent 97edf97 commit ac7bdbf

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/Resources/public/js/datatypes/tags/dynamicPermissionResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pimcore.object.tags.dynamicPermissionResource = Class.create(pimcore.object.tags
4646
fieldLabel: ts(config['label']),
4747
store: store,
4848
itemCls: "object_field",
49-
width: 500
49+
width: this.fieldConfig.labelWidth + 200
5050
};
5151

5252
if (typeof this.data[name] == "string" || typeof this.data[name] == "number") {

src/Resources/public/js/datatypes/tags/permissionResource.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
/**
2-
* Pimcore
3-
*
4-
* This source file is available under two different licenses:
5-
* - GNU General Public License version 3 (GPLv3)
6-
* - Pimcore Enterprise License (PEL)
7-
* Full copyright and license information is available in
8-
* LICENSE.md which is distributed with this source code.
9-
*
10-
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
11-
* @license http://www.pimcore.org/license GPLv3 and PEL
12-
*/
13-
14-
1+
/**
2+
* Pimcore
3+
*
4+
* This source file is available under two different licenses:
5+
* - GNU General Public License version 3 (GPLv3)
6+
* - Pimcore Enterprise License (PEL)
7+
* Full copyright and license information is available in
8+
* LICENSE.md which is distributed with this source code.
9+
*
10+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
11+
* @license http://www.pimcore.org/license GPLv3 and PEL
12+
*/
13+
14+
1515
pimcore.registerNS("pimcore.object.tags.permissionResource");
1616
pimcore.object.tags.permissionResource = Class.create(pimcore.object.tags.select, {
1717

@@ -40,7 +40,7 @@ pimcore.object.tags.permissionResource = Class.create(pimcore.object.tags.select
4040
fieldLabel: this.fieldConfig.title,
4141
store: store,
4242
itemCls: "object_field",
43-
width: 500
43+
width: this.fieldConfig.labelWidth + 200
4444
};
4545

4646
if (typeof this.data == "string" || typeof this.data == "number") {

0 commit comments

Comments
 (0)