From b1c6a75c494228c0c42d632f2bb218e4268089cb Mon Sep 17 00:00:00 2001 From: Rick Smith Date: Tue, 23 Jun 2015 16:04:40 -0600 Subject: [PATCH] When overlays are hidden, keep them that way Overlays previously had their display set to 'block' each time they were drawn. Now if their display is 'none' their display property is left alone --- src/overlay.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/overlay.js b/src/overlay.js index 0bdbbf34..0dd31ff3 100644 --- a/src/overlay.js +++ b/src/overlay.js @@ -282,7 +282,10 @@ style.left = position.x + "px"; style.top = position.y + "px"; style.position = "absolute"; - style.display = 'block'; + + if (style.display != 'none') { + style.display = 'block'; + } if ( scales ) { style.width = size.x + "px";