From 8d3d6cdb04eeb8dc4c8daaaeedc346c6ef4f3a3e Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Tue, 16 Oct 2007 03:29:19 +0000 Subject: [PATCH] * Changed Element#makeClipping to remember the original overflow value, even if it's a non-inline style. [Andrew Dupont] --- CHANGELOG | 2 ++ src/dom.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index dffc0a6..ad48d77 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Changed Element#makeClipping to remember the original overflow value, even if it's a non-inline style. [Andrew Dupont] + * Cross-browser Event#isLeftClick with the addition of is(Middle|Right)Click. Closes #7520. [Christophe Porteneuve, Richard Quadling, Mislav Marohnić] * Changed Selector to use the non-XPath approach for Safari 3 because of bugs in its version of document.evaluate. [Andrew Dupont] diff --git a/src/dom.js b/src/dom.js index 133e9b2..ba86405 100644 --- a/src/dom.js +++ b/src/dom.js @@ -466,8 +466,8 @@ Element.Methods = { makeClipping: function(element) { element = $(element); if (element._overflow) return element; - element._overflow = element.style.overflow || 'auto'; - if ((Element.getStyle(element, 'overflow') || 'visible') != 'hidden') + element._overflow = Element.getStyle(element, 'overflow') || 'auto'; + if (element._overflow !== 'hidden') element.style.overflow = 'hidden'; return element; },