File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
sources/net.sf.j2s.java.core Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2325,7 +2325,7 @@ if (!J2S._version)
23252325 viewerOptions . put ( "display" , applet . _id + "_canvas2d" ) ;
23262326 var w = applet . __Info . width ;
23272327 var h = applet . __Info . height ;
2328- if ( w > 0 && h > 0 && ( w != applet . _canvas . width
2328+ if ( applet . _canvas && w > 0 && h > 0 && ( w != applet . _canvas . width
23292329 || h != applet . _canvas . height ) ) {
23302330 // developer has used static { thisApplet.__Info.width=...}
23312331 J2S . $ ( applet , "appletdiv" ) . width ( w ) . height ( h ) ;
Original file line number Diff line number Diff line change @@ -12979,7 +12979,7 @@ if (!J2S._version)
1297912979 viewerOptions.put("display", applet._id + "_canvas2d");
1298012980 var w = applet.__Info.width;
1298112981 var h = applet.__Info.height;
12982- if (w > 0 && h > 0 && (w != applet._canvas.width
12982+ if (applet._canvas && w > 0 && h > 0 && (w != applet._canvas.width
1298312983 || h != applet._canvas.height)) {
1298412984 // developer has used static { thisApplet.__Info.width=...}
1298512985 J2S.$(applet, "appletdiv").width(w).height(h);
You can’t perform that action at this time.
0 commit comments