Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert Opera-specific behavior for calling Element#getStyle with (lef…

…t|right|top|bottom). [#268 state:resolved] (kangax, Andrew Dupont)
  • Loading branch information...
commit de6a58570015e10a315d3dc5751bb12d7e53f769 1 parent f6e77f6
@savetheclocktower savetheclocktower authored
Showing with 2 additions and 2 deletions.
  1. +2 −0  CHANGELOG
  2. +0 −2  src/dom/dom.js
View
2  CHANGELOG
@@ -1,3 +1,5 @@
+* Revert Opera-specific behavior for calling Element#getStyle with (left|right|top|bottom). [#268 state:resolved] (kangax, Andrew Dupont)
+
* Fix issue with Event#isMiddleClick and #isRightClick on Safari and Chrome. [#731 state:resolved] (Arthur Schreiber)
* Fix issue where an Ajax request in IE sometimes returns 1223 instead of 204 as the status code. [#129 state:resolved] (adevadeh, gordyt, Andrew Dupont)
View
2  src/dom/dom.js
@@ -2645,8 +2645,6 @@ if (Prototype.Browser.Opera) {
Element.Methods.getStyle = Element.Methods.getStyle.wrap(
function(proceed, element, style) {
switch (style) {
- case 'left': case 'top': case 'right': case 'bottom':
- if (proceed(element, 'position') === 'static') return null;
case 'height': case 'width':
// returns '0px' for hidden elements; we want it to return null
if (!Element.visible(element)) return null;
Please sign in to comment.
Something went wrong with that request. Please try again.