File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ X.renderer.prototype.onResize_ = function() {
305
305
}
306
306
307
307
// .. and re-draw
308
- this . resetViewAndRender ( ) ;
308
+ // this.resetViewAndRender();
309
309
310
310
} ;
311
311
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ X.renderer2D.prototype.init = function() {
365
365
*/
366
366
X . renderer2D . prototype . rotate = function ( ) {
367
367
368
- this . _camera . _view [ 1 ] ++ ;
368
+ this . _camera . _view [ 1 ] ++ ;
369
369
370
370
} ;
371
371
@@ -380,6 +380,20 @@ X.renderer2D.prototype.rotateCounter = function() {
380
380
} ;
381
381
382
382
383
+ /**
384
+ * @inheritDoc
385
+ */
386
+ X . renderer2D . prototype . onResize_ = function ( ) {
387
+
388
+ // call the super class
389
+ goog . base ( this , 'onResize_' ) ;
390
+
391
+ // in 2D we also want to perform auto scaling
392
+ this . autoScale_ ( ) ;
393
+
394
+ } ;
395
+
396
+
383
397
/**
384
398
* @inheritDoc
385
399
*/
You can’t perform that action at this time.
0 commit comments