Browse Source

REPORT-54116 设计器绝对布局内可锁定组件宽高比例

在已展示Shift锁定尺寸比例提示信息后,下次打开不再提示该信息
feature/10.0
Starryi 3 years ago
parent
commit
3e12974ef9
  1. 8
      designer-form/src/main/java/com/fr/design/designer/beans/location/AccessDirection.java

8
designer-form/src/main/java/com/fr/design/designer/beans/location/AccessDirection.java

@ -3,6 +3,8 @@
*/
package com.fr.design.designer.beans.location;
import com.fr.config.ServerPreferenceConfig;
import com.fr.config.utils.ConfigReadUtils;
import com.fr.design.beans.location.Absorptionline;
import com.fr.design.beans.location.MoveUtils;
import com.fr.design.designer.creator.*;
@ -193,7 +195,11 @@ public abstract class AccessDirection implements Direction {
if (type != formEditor.getCursor().getType()) {
// 设置当前形状
formEditor.setCursor(Cursor.getPredefinedCursor(type));
formEditor.setToolTipText(getTooltip());
ServerPreferenceConfig config = ServerPreferenceConfig.getInstance();
if (!config.isHasShownLockedAspectRatioResizingToolTip()) {
formEditor.setToolTipText(getTooltip());
config.setHasShownLockedAspectRatioResizingToolTip(true);
}
}
}

Loading…
Cancel
Save