Skip to content

Commit 6d34e27

Browse files
author
zhourenjian
committed
Fixing Button bugs for Opera 9.63
1 parent 6ee96f3 commit 6d34e27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/internal/browser

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/internal/browser/OS.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private OS() {
6666
var geckoPos = dua.indexOf("Gecko");
6767
os.isMozilla = (geckoPos >= 0)&&(!isKHTML);
6868
os.isFirefox = os.isMozilla && dua.indexOf ("Firefox") != -1;
69-
os.isIE = (document.all)&&(!os.isOpera);
69+
os.isIE = (document.all!=null)&&(!os.isOpera);
7070
os.isIE50 = os.isIE && dav.indexOf("MSIE 5.0")>=0;
7171
os.isIE55 = os.isIE && dav.indexOf("MSIE 5.5")>=0;
7272
os.isIE60 = os.isIE && dav.indexOf("MSIE 6.0")>=0;
@@ -830,6 +830,8 @@ public static int getFixedBodyClientHeight() {
830830
} else if (OS.isFirefox || OS.isSafari) {
831831
return (pcHeight == p.offsetHeight
832832
&& pcHeight == p.scrollHeight) ? bcHeight : pcHeight;
833+
} else if (OS.isOpera) {
834+
return pcHeight;
833835
}
834836
return bcHeight;
835837
}

0 commit comments

Comments
 (0)