Skip to content

Commit b4e64ca

Browse files
committed
Fixed globe resize when the canvas size changes.
1 parent 2d48300 commit b4e64ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ol3cesium.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ olcs.OLCesium = function(map, opt_target) {
145145

146146
this.cesiumRenderingDelay_ = new goog.async.AnimationDelay(function(time) {
147147
this.scene_.initializeFrame();
148+
this.handleResize_();
148149
this.scene_.render();
149150
this.enabled_ && this.camera_.checkCameraChange();
150151
this.cesiumRenderingDelay_.start();
@@ -231,7 +232,6 @@ olcs.OLCesium.prototype.setEnabled = function(opt_enable) {
231232
this.hiddenRootGroup_.setVisible(false);
232233
}
233234
}
234-
this.handleResize_();
235235
this.camera_.readFromView();
236236
this.cesiumRenderingDelay_.start();
237237
} else {

0 commit comments

Comments
 (0)