IDEMPIERE-5741 Text editor dialog not using ThemeManager.isUseCSSForWindowSize() correctly (#1860)

This commit is contained in:
hengsin 2023-05-29 20:42:50 +08:00 committed by GitHub
parent 568421360b
commit 295454b6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -105,9 +105,14 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
private void init() {
setBorder("normal");
if (ThemeManager.isUseCSSForWindowSize()) {
if (!ThemeManager.isUseCSSForWindowSize()) {
ZKUpdateUtil.setWindowHeightX(this, 450);
ZKUpdateUtil.setWindowWidthX(this, 800);
} else {
addCallback(AFTER_PAGE_ATTACHED, t -> {
ZKUpdateUtil.setCSSHeight(this);
ZKUpdateUtil.setCSSWidth(this);
});
}
setStyle("position: absolute;");
setSizable(false);