IDEMPIERE-1552:When double click into non line area (include header) of infoPanel. panel close.

This commit is contained in:
hieplq 2014-02-06 14:12:06 +07:00
parent 300ae850ac
commit 5e9593740c
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,7 @@ import org.zkoss.zk.ui.Page;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.event.MouseEvent;
import org.zkoss.zk.ui.event.SelectEvent; import org.zkoss.zk.ui.event.SelectEvent;
import org.zkoss.zk.ui.util.Clients; import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Listhead; import org.zkoss.zul.Listhead;
@ -1136,6 +1137,9 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
} }
else if (event.getTarget() == contentPanel && event.getName().equals(Events.ON_DOUBLE_CLICK)) else if (event.getTarget() == contentPanel && event.getName().equals(Events.ON_DOUBLE_CLICK))
{ {
if (event.getClass().equals(MouseEvent.class)){
return;
}
if (contentPanel.isMultiple()) { if (contentPanel.isMultiple()) {
if (m_lastOnSelectItem != null) if (m_lastOnSelectItem != null)
contentPanel.setSelectedItem(m_lastOnSelectItem); contentPanel.setSelectedItem(m_lastOnSelectItem);