Skip to content

Commit bf7ec89

Browse files
committed
moar braces
1 parent a476d78 commit bf7ec89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ggplotly.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ gg2list <- function(p, width = NULL, height = NULL,
552552
)
553553
# allocate enough space for the _longest_ text label
554554
axisTextX <- theme[["axis.text.x"]] %||% theme[["axis.text"]]
555-
labz <- unlist(lapply(layout$panel_params, function(pp) pp[["x"]]$get_labels %()% pp$x.labels))
555+
labz <- unlist(lapply(layout$panel_params, function(pp) { pp[["x"]]$get_labels %()% pp$x.labels }))
556556
lab <- labz[which.max(nchar(labz))]
557557
panelMarginY <- panelMarginY + axisTicksX +
558558
bbox(lab, axisTextX$angle, unitConvert(axisTextX, "npc", "height"))[["height"]]
@@ -564,7 +564,7 @@ gg2list <- function(p, width = NULL, height = NULL,
564564
)
565565
# allocate enough space for the _longest_ text label
566566
axisTextY <- theme[["axis.text.y"]] %||% theme[["axis.text"]]
567-
labz <- unlist(lapply(layout$panel_params, function(pp) pp[["y"]]$get_labels %()% pp$y.labels))
567+
labz <- unlist(lapply(layout$panel_params, function(pp) { pp[["y"]]$get_labels %()% pp$y.labels }))
568568
lab <- labz[which.max(nchar(labz))]
569569
panelMarginX <- panelMarginX + axisTicksY +
570570
bbox(lab, axisTextY$angle, unitConvert(axisTextY, "npc", "width"))[["width"]]

0 commit comments

Comments
 (0)