From c7a82dc570f74a15871e8c7eba6ea1dcc1139c5b Mon Sep 17 00:00:00 2001 From: ymq Date: Tue, 25 Aug 2026 17:01:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(popup):=20=E5=BC=B9=E7=AA=97=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BA=20archor:cc=20+=20=E4=BF=AE=20heigh?= =?UTF-8?q?t:auto=20=E5=AF=BC=E8=87=B4=E7=9A=84=20NaN=20=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Popup 位置计算(height→h)只支持 px/百分比/cheight,不支持 auto: height:'auto' → parseFloat('auto')=NaN → t=(rect.height-NaN)/2=NaN → top='NaNpx' 浏览器忽略无效值 → 弹窗跑到顶部,表现像 archor:'tc'。 改为 height:'60%' + 显式 archor:'cc'(默认本就是 cc,显式写清居中意图)。 --- wwwroot/knowledge_bases_list/index.ui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/knowledge_bases_list/index.ui b/wwwroot/knowledge_bases_list/index.ui index 34353f7..3760a45 100644 --- a/wwwroot/knowledge_bases_list/index.ui +++ b/wwwroot/knowledge_bases_list/index.ui @@ -66,8 +66,9 @@ "auto_dismiss": false, "dismiss_events": ["cancel", "submited"], "movable": true, + "archor": "cc", "width": "34%", - "height": "auto" + "height": "60%" }, "options": { "url": "{{entire_url('./new_kb_form.ui')}}"