Skip to content

Commit 847ccde

Browse files
committed
proper inheritance in colourbar size
1 parent c404748 commit 847ccde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/guide-colorbar.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ GuideColourbar <- ggproto(
293293
# We set the defaults in `theme` so that the `params$theme` can still
294294
# overrule defaults given here
295295
if (params$direction == "horizontal") {
296-
theme$legend.key.width <- theme$legend.key.width * 5
296+
theme$legend.key.width <- rel(5)
297297
valid_position <- c("bottom", "top")
298298
} else {
299-
theme$legend.key.height <- theme$legend.key.height * 5
299+
theme$legend.key.height <- rel(5)
300300
valid_position <- c("right", "left")
301301
}
302302

0 commit comments

Comments
 (0)