BF [ 2872237 ] 2pack should import window size

https://sourceforge.net/tracker/?func=detail&aid=2872237&group_id=176962&atid=879332

Thank's Carlos for your quick fix. Now I am just correcting to use Adempiere framework helper methods.
This commit is contained in:
teo_sarca 2009-10-03 15:29:36 +00:00
parent 69afc85a2c
commit 9d0cbdfbc8
1 changed files with 2 additions and 2 deletions

View File

@ -115,9 +115,9 @@ public class WindowElementHandler extends AbstractElementHandler {
.booleanValue());
m_Window.setName(atts.getValue("Name"));
m_Window.setProcessing(false);
if (atts.getValue("WinWidth") != null && atts.getValue("WinWidth").trim().length() > 0)
if (!Util.isEmpty(atts.getValue("WinHeight"), true))
m_Window.setWinWidth(getValueInt(atts, "WinWidth", 0));
if (atts.getValue("WinHeight") != null && atts.getValue("WinHeight").trim().length() > 0)
if (!Util.isEmpty(atts.getValue("WinHeight"), true))
m_Window.setWinHeight(getValueInt(atts, "WinHeight", 0));
m_Window.setWindowType(atts.getValue("WindowType"));
if (m_Window.save(getTrxName(ctx)) == true) {