mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4570 from node-red/fix-icon-scaling
Fix missing node icons in workspace
This commit is contained in:
commit
016a19ba7c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user