diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java index 6354b042fc..67c3e844e1 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WImageDialog.java @@ -346,12 +346,7 @@ public class WImageDialog extends Window implements EventListener // OK fileNameTextbox.setValue(imageFile.getName()); - invalidate(); - if (ThemeManager.isUseCSSForWindowSize()) - { - ZKUpdateUtil.setCSSHeight(this); - ZKUpdateUtil.setCSSWidth(this); - } + mainLayout.invalidate(); // Save info if (m_mImage == null)