Skip to content

Commit

Permalink
Fix #151
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Mar 25, 2024
1 parent 6514cbc commit ea64b81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/strip_vanilla.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Strip <- ggproto(
if (!new_guide_system) {
height <- lapply(labels[!zeros], function(x) x$heights[2])
} else {
height <- lapply(labels[!zeros], function(x) sum(x$heights))
height <- lapply(labels[!zeros], grobHeight)
}
height <- lapply(split(height, layer_id[!zeros]), max_height)
height <- do.call(unit.c, height)
Expand All @@ -179,7 +179,7 @@ Strip <- ggproto(
if (!new_guide_system) {
width <- lapply(labels[!zeros], function(x) x$widths[2])
} else {
width <- lapply(labels[!zeros], function(x) sum(x$widths))
width <- lapply(labels[!zeros], grobWidth)
}
width <- lapply(split(width, layer_id[!zeros]), max_width)
width <- do.call(unit.c, width)
Expand Down

0 comments on commit ea64b81

Please sign in to comment.