Skip to content

Commit

Permalink
fix radius
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf committed Sep 25, 2024
1 parent 69efd61 commit 57c1d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page/ux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57c1d4b

Please sign in to comment.