IDEMPIERE-5741 Text editor dialog not using ThemeManager.isUseCSSForWindowSize() correctly (#1860)
This commit is contained in:
parent
568421360b
commit
295454b6e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue