From f37433c0277ee0f49746e9c807b42235e458dbdb Mon Sep 17 00:00:00 2001 From: "bcoles@gmail.com" Date: Tue, 2 Aug 2011 13:09:01 +0000 Subject: [PATCH] The scroll bars are now removed from a hooked window if the iframe persistance command has been executed. The scroll bars are removed once the user clicks a URL in order to prevent duplicate scroll bars. Fixes issue 224 git-svn-id: https://beef.googlecode.com/svn/trunk@1161 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/main/client/session.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/main/client/session.js b/core/main/client/session.js index cf5128158..799773c51 100644 --- a/core/main/client/session.js +++ b/core/main/client/session.js @@ -89,6 +89,8 @@ beef.session = { e.preventDefault(); beef.dom.createIframe('fullscreen', 'get', {'src':$j(this).attr('href')}, {}, null); $j(document).attr('title', $j(this).html()); + document.body.scroll = "no"; + document.documentElement.style.overflow = 'hidden'; } }); } @@ -97,4 +99,4 @@ beef.session = { }; -beef.regCmp('beef.session'); \ No newline at end of file +beef.regCmp('beef.session');