Skip to content

Commit 2ae0fc1

Browse files
committed
Line-based theme elements now also use linewidth over size
1 parent b29bd7d commit 2ae0fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ verifyUnit <- function(u) {
11991199

12001200
## the default unit in ggplot2 is millimeters (unless it's element_text())
12011201
if (inherits(u, "element")) {
1202-
grid::unit(u$size %||% 0, "points")
1202+
grid::unit(u$linewidth %||% u$size %||% 0, "points")
12031203
} else {
12041204
grid::unit(u %||% 0, "mm")
12051205
}

0 commit comments

Comments
 (0)