Merge pull request #4570 from node-red/fix-icon-scaling

Fix missing node icons in workspace
This commit is contained in:
Nick O'Leary 2024-02-20 10:37:33 +00:00 committed by GitHub
commit 016a19ba7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4156,7 +4156,7 @@ RED.view = (function() {
} }
var width = img.width * scaleFactor; var width = img.width * scaleFactor;
if (width > 20) { if (width > 20) {
scalefactor *= 20/width; scaleFactor *= 20/width;
width = 20; width = 20;
} }
var height = img.height * scaleFactor; var height = img.height * scaleFactor;