From 3280a2ad5c3854c78960288ebd8b8fdebfc2672f Mon Sep 17 00:00:00 2001 From: Naomi Guyer Date: Mon, 29 Feb 2016 14:36:34 +1300 Subject: [PATCH] BUG: ringElem doesn't change size on rotate (iPad) We've encountered an issue in a project that appears under certain circumstances on ipads. Replication steps: 1. load a page at landscape on an ipad 2. focus to a form field, 3. switch to portrait Result: it doesn't redraw the width and height of the flying focus element. This means that when a field is close to the right hand side of a page, it will create empty space out the side until the field is unfocussed. --- standalone/flying-focus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone/flying-focus.js b/standalone/flying-focus.js index e73c99d..9f49bfd 100644 --- a/standalone/flying-focus.js +++ b/standalone/flying-focus.js @@ -27,7 +27,7 @@ docElem.addEventListener('keydown', function(event) { }, false); -docElem.addEventListener('focus', function(event) { +docElem.addEventListener('focus resize', function(event) { var target = event.target; if (target.id === 'flying-focus') { return;