From c94b8be6292b55d1ec5351fbfa42b391658de2f6 Mon Sep 17 00:00:00 2001 From: sir-indy <53864146+sir-indy@users.noreply.github.com> Date: Wed, 4 May 2022 10:18:48 +0100 Subject: [PATCH] Update Layout.js Removed as per https://github.com/espruino/BangleApps/pull/1788#discussion_r863924717 --- modules/Layout.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/Layout.js b/modules/Layout.js index f2ebc418a..c978c611b 100644 --- a/modules/Layout.js +++ b/modules/Layout.js @@ -231,8 +231,6 @@ Layout.prototype.render = function (l) { g.setFont(l.font).setFontAlign(0,0,l.r).drawString(l.label, l.x+(l.w>>1), l.y+(l.h>>1)); } }, "btn":function(l){ - if (l.font && l.font.endsWith("%")) - l.font = "Vector"+Math.round(g.getHeight()*l.font.slice(0,-1)/100); var x = l.x+(0|l.pad), y = l.y+(0|l.pad), w = l.w-(l.pad<<1), h = l.h-(l.pad<<1); var poly = [