From 57c1d4be8e180d75acd6c6fe2cb68a762405e3af Mon Sep 17 00:00:00 2001 From: ksqsf Date: Wed, 25 Sep 2024 22:44:57 +0200 Subject: [PATCH] fix radius --- page/ux.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/ux.ts b/page/ux.ts index ad36401..a1e7c0d 100644 --- a/page/ux.ts +++ b/page/ux.ts @@ -83,7 +83,7 @@ export function resize( } const pRect = panel.getBoundingClientRect() - const pRadius = Number.parseFloat(getComputedStyle(panel).borderRadius) + const pRadius = Math.max(...getComputedStyle(panel).borderRadius.split(' ').map(Number.parseFloat)) window.fcitx._resize(call_id, dx, dy, anchorTop, anchorRight, anchorBottom, anchorLeft, pRect.top, pRect.right, pRect.bottom, pRect.left, pRadius, right, bottom, dragging) } adaptWindowSize(hasContextmenu)