Browse Source

Merge pull request #1240 in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit '256bec10b6accab8a98c6a751cf79d790d427cff':
  REPORT-7588 绝对画布块和另一个组件一起移动时,绝对化布块里的组件会缩小 同步到10.0
feature/big-screen
neil 5 years ago
parent
commit
dfaf6bd6ec
  1. 6
      designer-form/src/main/java/com/fr/design/mainframe/FormSelection.java

6
designer-form/src/main/java/com/fr/design/mainframe/FormSelection.java

@ -265,12 +265,18 @@ public class FormSelection {
* @param designer 设计界面组件 * @param designer 设计界面组件
*/ */
public void fixCreator(FormDesigner designer) { public void fixCreator(FormDesigner designer) {
int i = 0;
for (XCreator creator : selection) { for (XCreator creator : selection) {
LayoutAdapter layoutAdapter = AdapterBus.searchLayoutAdapter(designer, creator); LayoutAdapter layoutAdapter = AdapterBus.searchLayoutAdapter(designer, creator);
if (layoutAdapter != null) { if (layoutAdapter != null) {
if (creator.acceptType(XWAbsoluteLayout.class) && recs.size() > i) {
creator.setBackupBound(recs.get(i));
} else {
creator.setBackupBound(backupBounds); creator.setBackupBound(backupBounds);
}
layoutAdapter.fix(creator); layoutAdapter.fix(creator);
} }
i++;
} }
} }

Loading…
Cancel
Save