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; },