diff options
author | Claudio Guglielmo | 2021-08-10 11:08:46 +0000 |
---|---|---|
committer | Claudio Guglielmo | 2021-08-10 11:12:00 +0000 |
commit | 8c43a1bdf685a560736c2d6eee53c760cb082308 (patch) | |
tree | 22a979113c07c2377d962e9bfa1ccc5dd144f0ef | |
parent | 9edd15854b03ed08795ee5082840716f0685b261 (diff) | |
download | org.eclipse.scout.rt-features/cgu/brushup_table_header.tar.gz org.eclipse.scout.rt-features/cgu/brushup_table_header.tar.xz org.eclipse.scout.rt-features/cgu/brushup_table_header.zip |
Mobile: fix error when closing formfeatures/cgu/brushup_table_header
Since commit 39192bb0e5bc5c5e03f174c31765e543d33f52ef
the display parent is set for detail forms. When the
display parent is set, the parent will be adjusted
automatically using Desktop.computeParentForDisplayParent.
In our case, parent is set to desktop because display
parent is outline.
This breaks the mobile client because the detail form is not removed
when a regular form is opened which leads to exceptions when the form
is closed again.
Actually, detail forms don't need a display parent at all.
-rw-r--r-- | eclipse-scout-core/src/desktop/outline/pages/Page.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/eclipse-scout-core/src/desktop/outline/pages/Page.js b/eclipse-scout-core/src/desktop/outline/pages/Page.js index f9f89481d3..2f40e4b0c3 100644 --- a/eclipse-scout-core/src/desktop/outline/pages/Page.js +++ b/eclipse-scout-core/src/desktop/outline/pages/Page.js @@ -8,7 +8,7 @@ * Contributors: * BSI Business Systems Integration AG - initial API and implementation */ -import {Event, EventSupport, Form, icons, inspector, MenuBar, Outline, TableRow, scout, TileOutlineOverview, TileOverviewForm, TreeNode, Widget} from '../../../index'; +import {Event, EventSupport, Form, icons, inspector, MenuBar, scout, TileOutlineOverview, TileOverviewForm, TreeNode, Widget} from '../../../index'; import $ from 'jquery'; /** @@ -198,9 +198,6 @@ export default class Page extends TreeNode { if (form instanceof Form) { form.setModal(false); } - if (!form.displayParent && form.setDisplayParent) { - form.setDisplayParent(this.getOutline()); - } if (form instanceof TileOverviewForm) { form.setPage(this); } |