Skip to content

Commit e281702

Browse files
Fix failing layout test in Opera 12. [close prototypejs#228]
1 parent 4cbba52 commit e281702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prototype/dom/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
return boxWidth - bl - br - pl - pr;
5656
}
5757

58-
if ('currentStyle' in document.documentElement) {
58+
if (!Object.isUndefined(document.documentElement.currentStyle) && !Prototype.Browser.Opera) {
5959
getRawStyle = getRawStyle_IE;
6060
}
6161

0 commit comments

Comments
 (0)