Permalink
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...
1 parent f6e77f6 commit de6a58570015e10a315d3dc5751bb12d7e53f769 @savetheclocktower savetheclocktower committed Oct 17, 2010
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;

0 comments on commit de6a585

Please sign in to comment.