fix top right border radius (#2522)

This commit is contained in:
flyskyko 2021-05-07 18:32:51 +09:00 committed by GitHub
parent 7222aba1b4
commit ba172678f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export class BoundCurves {
? getCurvePoints(
bounds.left + Math.min(topWidth, bounds.width + borderLeftWidth),
bounds.top + borderTopWidth,
topWidth > bounds.width + borderLeftWidth ? 0 : trh - borderLeftWidth,
topWidth > bounds.width + borderRightWidth ? 0 : trh - borderRightWidth,
trv - borderTopWidth,
CORNER.TOP_RIGHT
)

View File

@ -63,6 +63,13 @@
border-radius: 200px;
}
.box7 {
border-width: 10px 10px 10px 1px;
border-left-color: transparent;
border-top-color: red;
border-right-color: green;
}
.gauge{
display: inline-block;
width: 100px;
@ -91,6 +98,7 @@
<div class="box box4">&nbsp;</div>
<div class="box box5">&nbsp;</div>
<div class="box box6">&nbsp;</div>
<div class="box box7">&nbsp;</div>
<div class="gauge gauge1"></div>
<div class="gauge gauge2"></div>
<div class="gauge gauge3"></div>