Skip to content

Commit efaeebf

Browse files
committed
ggplotly: comment about margin sizes correctness
1 parent 3d6e3ca commit efaeebf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/ggplotly.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ gg2list <- function(p, width = NULL, height = NULL, tooltip = "all", source = "A
345345
bbox(lab, axisTextY$angle, unitConvert(axisTextY, "npc", "width"))[["width"]]
346346
}
347347
}
348+
# FIXME left/right top/left subplot margins are summed in get_domains, do we need them both?
349+
# FIXME using rep() gives double-sized margins in dom, but somehow this bug is covered by
350+
# the same effect as offset hack below
348351
margins <- c(
349352
rep(panelMarginX, 2),
350353
rep(panelMarginY, 2)

0 commit comments

Comments
 (0)