Skip to content

Commit 090d66e

Browse files
committed
Info.isResizable fix for setting Info.width and Info.height in px
1 parent cd39896 commit 090d66e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,7 @@ if (database == "_" && J2S._serverUrl.indexOf("//your.server.here/") >= 0) {
14371437
&& (obj._z = obj.__Info.z = getZOrders(Info.zIndexBase));
14381438
obj._width = Info.width;
14391439
obj._height = Info.height;
1440+
obj._isResizable = Info.isResizable;
14401441
obj._noscript = !obj._isJava && Info.noscript;
14411442
obj._console = Info.console;
14421443
obj._cacheFiles = !!Info.cacheFiles;
@@ -2492,8 +2493,8 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
24922493
this._is2D = true;
24932494
this._isJava = false;
24942495
this._isJNLP = !!Info.main;
2495-
if (typeof Info. isResizable == "undefined" && ("" + Info.width).indexOf("px")>=0)
2496-
Info.isResizable = false;
2496+
if (typeof Info.isResizable == "undefined")
2497+
Info.isResizable = (("" + Info.width).indexOf("px")< 0);
24972498
this._jmolType = "J2S._Canvas2D (" + type + ")";
24982499
this._isLayered = Info._isLayered || false; // JSV or SwingJS are
24992500
// layered

0 commit comments

Comments
 (0)