Skip to content

Commit a02230c

Browse files
committed
Fix viewports
1 parent 8bc197e commit a02230c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/traces/splom/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ function plot(gd, _, cdata) {
191191
viewOpts.domains[i] = [xa.domain[0], ya.domain[0], xa.domain[1], ya.domain[1]];
192192
}
193193

194-
viewOpts.viewport = [0, 0, fullLayout.width, fullLayout.height];
195-
viewOpts.padding = [gs.l, gs.t, gs.r, gs.b];
194+
viewOpts.viewport = [gs.l, gs.b, fullLayout.width - gs.r, fullLayout.height - gs.t];
196195

197196
if(scene.matrix === true) {
198197
scene.matrix = createMatrix(regl);

0 commit comments

Comments
 (0)