Skip to content

Commit 7546492

Browse files
committed
dismiss global margins when stretchy
1 parent cc33ac1 commit 7546492

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/guides-.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,10 +742,10 @@ Guides <- ggproto(
742742
)
743743

744744
# Set global margin
745-
if (stretch_x) {
745+
if (stretch_x || stretch_spacing) {
746746
global_margin[c(2, 4)] <- unit(0, "cm")
747747
}
748-
if (stretch_y) {
748+
if (stretch_y || stretch_spacing) {
749749
global_margin[c(1, 3)] <- unit(0, "cm")
750750
}
751751
guides <- gtable_add_padding(guides, global_margin)

0 commit comments

Comments
 (0)