File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,10 @@ Guides <- ggproto(
618
618
global_xjust <- inside_just [1 ]
619
619
global_yjust <- inside_just [2 ]
620
620
global_margin <- margin()
621
- if (is.null(inside_position )) { # for backward compatibility
621
+ # # for backward compatibility, no `inside_position` input
622
+ if (is.null(inside_position ) ||
623
+ # `inside_position` is a list of length one
624
+ is.null(inside_position <- inside_position [[1L ]])) {
622
625
x <- global_xjust
623
626
y <- global_yjust
624
627
} else {
@@ -707,7 +710,7 @@ Guides <- ggproto(
707
710
708
711
# Set global justification
709
712
vp <- viewport(
710
- x = global_xjust , y = global_yjust , just = global_just ,
713
+ x = x , y = y , just = global_just ,
711
714
height = vp_height ,
712
715
width = max(widths )
713
716
)
You can’t perform that action at this time.
0 commit comments