PL-10499 Incorrect view of EntityInspectorEditor

This commit is contained in:
Daniil Tsarev 2018-04-10 10:03:05 +04:00
parent f59e73d043
commit 04c654875b
3 changed files with 12 additions and 4 deletions

View File

@ -341,6 +341,7 @@ public class EntityInspectorEditor extends AbstractWindow {
protected void createDataComponents(MetaClass metaClass, Entity item) {
FieldGroup fieldGroup = componentsFactory.createComponent(FieldGroup.class);
fieldGroup.setBorderVisible(true);
fieldGroup.setWidthFull();
contentPane.add(fieldGroup);
fieldGroup.setFrame(frame);
@ -584,7 +585,7 @@ public class EntityInspectorEditor extends AbstractWindow {
field.setCustom(custom);
field.setRequired(required);
field.setEditable(!readOnly);
field.setWidth("400px");
field.setWidth("100%");
if (requireTextArea(metaProperty, item)) {
Element root = DocumentHelper.createElement("textArea");
@ -654,7 +655,7 @@ public class EntityInspectorEditor extends AbstractWindow {
String caption = getPropertyCaption(datasource.getMetaClass(), metaProperty);
field.setCaption(caption);
field.setMetaClass(propertyMeta);
field.setWidth("400px");
field.setWidth("100%");
PickerField.LookupAction lookupAction = field.addLookupAction();
//forwards lookup to the EntityInspectorBrowse window

View File

@ -22,8 +22,12 @@
<tabSheet id="tablesTabSheet" width="100%">
<tab id="general" caption="msg://general" spacing="true">
<scrollBox id="fieldsScrollBox" height="100%" width="100%" spacing="true">
<vbox id="contentPane" spacing="true"/>
<vbox id="runtimePane" spacing="true"/>
<vbox id="contentPane"
spacing="true"
width="theme://cuba.gui.entity-inspector-edit.contentPane.width"/>
<vbox id="runtimePane"
spacing="true"
width="theme://cuba.gui.entity-inspector-edit.runtimePane.width"/>
</scrollBox>
</tab>
</tabSheet>

View File

@ -105,6 +105,9 @@ cuba.gui.copy-settings.userSelect.width=350px
cuba.gui.category-edit.field.width=200px
cuba.gui.entity-inspector-edit.contentPane.width=1000px
cuba.gui.entity-inspector-edit.runtimePane.width=1000px
cuba.gui.entity-log-browse.field.width=250px
cuba.gui.entity-log-browse.button.width=70px