Skip to content

Commit 2c6b0ee

Browse files
hansonrhansonr
authored andcommitted
SwingJS-zip
1 parent c6f23d2 commit 2c6b0ee

File tree

7 files changed

+304
-303
lines changed

7 files changed

+304
-303
lines changed
1.21 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190712142428
1+
20190713211319
1.21 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190712142428
1+
20190713211319
1.21 KB
Binary file not shown.

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
import swingjs.api.js.J2SInterface;
6363
import swingjs.api.js.JQuery;
6464
import swingjs.api.js.JQueryObject;
65-
import swingjs.api.js.JSInterface;
6665

6766
/**
6867
* The JSComponentUI subclasses are where all the detailed HTML5 implementation
@@ -1292,8 +1291,8 @@ protected void propertyChangedCUI(PropertyChangeEvent e, String prop) {
12921291
switch (prop) {
12931292
case "preferredSize":
12941293
// size has been set by JComponent layout
1295-
preferredSize = c.getPreferredSize(); // may be null
1296-
getPreferredSize(jc);
1294+
preferredSize = (Dimension) e.getNewValue();
1295+
// getPreferredSize(jc);
12971296
return;
12981297
case "background":
12991298
setBackground(c.getBackground());

0 commit comments

Comments
 (0)