Skip to content

Commit 19fe9fb

Browse files
authored
Minor whitespace adjustments
1 parent b2bfaaa commit 19fe9fb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

modules/Layout.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,9 @@ Layout.prototype.update = function() {
257257
}, "btn": function(l) { "ram";
258258
if (l.font && l.font.endsWith("%"))
259259
l.font = "Vector"+rnd(gfx.getHeight()*l.font.slice(0,-1)/100);
260-
261-
var m = l.src
260+
var s = l.scale || 1, m = l.src
262261
? gfx.imageMetrics("function"==typeof l.src ? l.src() : l.src)
263262
: gfx.setFont(l.font||"6x8:2").stringMetrics(l.label);
264-
265-
var s = l.scale || 1;
266263
l._h = 16 + Math.ceil(m.height * s);
267264
l._w = 20 + Math.ceil(m.width * s);
268265
}, "img": function(l) {"ram";

0 commit comments

Comments
 (0)