* Changed Element#makeClipping to remember the original overflow value, even if it's a non-inline style. [Andrew Dupont]

This commit is contained in:
Andrew Dupont 2007-10-16 03:29:19 +00:00
parent 3dd7bd5b4b
commit 8d3d6cdb04
2 changed files with 4 additions and 2 deletions

View File

@ -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]

View File

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