From 998d77168c4d791c89bc0242b3431116d62f6f42 Mon Sep 17 00:00:00 2001 From: Starryi Date: Thu, 26 Aug 2021 18:39:36 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-58188=20=E3=80=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E3=80=91tab=E8=AE=BE=E7=BD=AE=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E8=89=B2=E4=BB=A5=E5=90=8E=EF=BC=8Ctab=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=A0=8F=E6=B2=A1=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 Tab组件右侧栏属性面板修改后,会调用initStyle重置样式, 但因为样式面板上的设置实际上是无标题样式,导致此时获取到的 样式数据模型中也是无标题的,从而触发了标题的隐藏。 重新初始化标题样式 【改动思路】 同上 --- .../fr/design/designer/creator/cardlayout/XWCardLayout.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/XWCardLayout.java b/designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/XWCardLayout.java index 4fb422c0aa..1d564ec6c1 100644 --- a/designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/XWCardLayout.java +++ b/designer-form/src/main/java/com/fr/design/designer/creator/cardlayout/XWCardLayout.java @@ -406,15 +406,10 @@ public class XWCardLayout extends XLayoutContainer { private void initBorderTitleStyle(BorderPacker style) { //初始化默认标题样式 - if (!initFlag) { - return; - } - style.setType(LayoutBorderStyle.TITLE); style.setBorder(Constants.LINE_THIN); TitlePacker widgetTitle = style.getTitle(); widgetTitle.setBackground(ColorBackground.getInstance(TITLE_COLOR)); - initFlag = false; } //隐藏或显示标题部分