Merge pull request #2627 from pearcetm/pixel-density-change

Fix #2623
This commit is contained in:
Ian Gilman 2024-12-06 09:30:41 -08:00 committed by GitHub
commit 07502e6d58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2542,8 +2542,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
},
/**
* Update pixel density ratio, clears all tiles and triggers updates for
* all items if the ratio has changed.
* Update pixel density ratio and forces a resize operation.
* @private
*/
_updatePixelDensityRatio: function() {
@ -2551,8 +2550,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
var currentPixelDensityRatio = $.getCurrentPixelDensityRatio();
if (previusPixelDensityRatio !== currentPixelDensityRatio) {
$.pixelDensityRatio = currentPixelDensityRatio;
this.world.resetItems();
this.forceRedraw();
this.forceResize();
}
},