Skip to content

Commit 5e03f0f

Browse files
author
zhourenjian
committed
1. Fixed a bug that ShellManager does not destroy (hide) title bar correct in maximized mode
2. Remove Runnability dependency from Clazz, so *.internal.xhtml.* can be used in native HTML applications.
1 parent c40a454 commit 5e03f0f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package org.eclipse.swt.internal.xhtml;
22

3-
import org.eclipse.swt.internal.RunnableCompatibility;
4-
53
public class Clazz {
64

75
public native static Runnable makeFunction(Runnable runnable);
8-
9-
public native static Runnable makeFunction(RunnableCompatibility runnable);
6+
107
}

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/ShellManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ sm.removeShellItem = function (shell) {
188188
break;
189189
}
190190
}
191+
var smStyle = this.topbarContainerEl.style;
192+
if (smStyle.display == "block" && shell.getMaximized()) {
193+
smStyle.display == "none";
194+
}
191195
};
192196
sm.syncItems = function () {
193197
var delta = 0;

0 commit comments

Comments
 (0)