Skip to content

Commit 0fce11b

Browse files
authored
Merge pull request #5236 from plotly/fix5235-guard-against-bad-coords
Avoid unnecessary styling of backgrounds during automargin redraws when subplot positions are incomplete
2 parents 5d4c888 + ab7136d commit 0fce11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_api/subroutines.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function lsInner(gd) {
178178
xa = plotinfo.xaxis;
179179
ya = plotinfo.yaxis;
180180

181-
if(plotinfo.bg) {
181+
if(plotinfo.bg && xa._offset !== undefined && ya._offset !== undefined) {
182182
plotinfo.bg
183183
.call(Drawing.setRect,
184184
xa._offset - pad, ya._offset - pad,

0 commit comments

Comments
 (0)