From 0c2ab5f1f250cb586a7e644911ca8a0608f93b02 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 4 Jan 2016 09:06:19 +0100 Subject: [PATCH] Fix help dialog font sizing --- extension/lib/help.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/lib/help.coffee b/extension/lib/help.coffee index 92de62f..a69d858 100644 --- a/extension/lib/help.coffee +++ b/extension/lib/help.coffee @@ -60,7 +60,7 @@ injectHelp = (window, vimfx) -> computedStyle = window.getComputedStyle(container) fontSize = originalFontSize = parseFloat(computedStyle.getPropertyValue('font-size')) - while container.scrollTopMax == 0 and fontSize <= MAX_FONT_SIZE + while wrapper.scrollTopMax == 0 and fontSize <= MAX_FONT_SIZE fontSize++ container.style.fontSize = "#{fontSize}px" container.style.fontSize = "#{Math.max(fontSize - 1, originalFontSize)}px" -- 2.39.3