Skip to content

Commit d7c47a0

Browse files
committed
Rollback the optimization to skip colorbar layout
1 parent 70b0e89 commit d7c47a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ Plotly.plot = function(gd, data, layout, config) {
206206
if(trace.visible !== true || !trace._module.colorbar) {
207207
Plots.autoMargin(gd, 'cb' + trace.uid);
208208
}
209-
else if(Plots.traceIs(trace, 'markerColorscale') || Plots.traceIs(trace, 'parcoords') || Colorbar.hasColorbar(trace)) {
210-
trace._module.colorbar(gd, cd);
211-
}
209+
else trace._module.colorbar(gd, cd);
212210
}
213211

214212
Plots.doAutoMargin(gd);

0 commit comments

Comments
 (0)