IDEMPIERE-624 Null.pointer.exception in zoom to column.
This commit is contained in:
parent
6a8ded433e
commit
eac774fb67
|
@ -481,6 +481,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
{
|
{
|
||||||
setActiveTab(gridWindow.getTabIndex(gTab), null);
|
setActiveTab(gridWindow.getTabIndex(gTab), null);
|
||||||
gTab.navigate(i);
|
gTab.navigate(i);
|
||||||
|
if (gc.isGridView())
|
||||||
|
gc.switchRowPresentation();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,7 +255,7 @@ public class CompositeADTabbox extends AbstractADTabbox
|
||||||
return;
|
return;
|
||||||
|
|
||||||
IADTabpanel tabPanel = (IADTabpanel) event.getTarget();
|
IADTabpanel tabPanel = (IADTabpanel) event.getTarget();
|
||||||
if (tabPanel != headerTab) {
|
if (tabPanel != headerTab && headerTab.getDetailPane() != null) {
|
||||||
if (b != null && b.booleanValue()) {
|
if (b != null && b.booleanValue()) {
|
||||||
onActivateDetail(tabPanel);
|
onActivateDetail(tabPanel);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ 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.util.Clients;
|
import org.zkoss.zk.ui.util.Clients;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
import org.zkoss.zul.Column;
|
import org.zkoss.zul.Column;
|
||||||
import org.zkoss.zul.Div;
|
import org.zkoss.zul.Div;
|
||||||
import org.zkoss.zul.Frozen;
|
import org.zkoss.zul.Frozen;
|
||||||
|
@ -632,11 +633,8 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace
|
||||||
Component c = (Component) o;
|
Component c = (Component) o;
|
||||||
if (!c.isVisible())
|
if (!c.isVisible())
|
||||||
continue;
|
continue;
|
||||||
c = c.getFirstChild();
|
if (c instanceof Cell) {
|
||||||
if (c == null)
|
cmp = c;
|
||||||
continue;
|
|
||||||
if (c.getNextSibling() != null) {
|
|
||||||
cmp = c.getNextSibling();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,25 +1,41 @@
|
||||||
function ad_deferRenderBorderLayout(uuid, timeout) {
|
function ad_deferRenderBorderLayout(uuid, timeout) {
|
||||||
var meta = zk.Widget.$(uuid);
|
try {
|
||||||
if (meta) {
|
var meta = zk.Widget.$(uuid);
|
||||||
setTimeout("_ad_deferBDL('"+uuid+"')", timeout);
|
if (meta) {
|
||||||
|
setTimeout("_ad_deferBDL('"+uuid+"')", timeout);
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
if (console) console.log(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function _ad_deferBDL(uuid) {
|
function _ad_deferBDL(uuid) {
|
||||||
var cmp = zk.Widget.$(uuid);
|
try {
|
||||||
if (cmp) { cmp.resize(); }
|
var cmp = zk.Widget.$(uuid);
|
||||||
|
if (cmp) { cmp.resize(); }
|
||||||
|
} catch (err) {
|
||||||
|
if (console) console.log(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function _ad_closeBuble(link) {
|
function _ad_closeBuble(link) {
|
||||||
var parent = link.parentsUntil("simileAjax-bubble-contentContainer");
|
try {
|
||||||
var btn = parent.next();
|
var parent = link.parentsUntil("simileAjax-bubble-contentContainer");
|
||||||
btn.click();
|
var btn = parent.next();
|
||||||
|
btn.click();
|
||||||
|
} catch (err) {
|
||||||
|
if (console) console.log(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollToRow(uuid){
|
function scrollToRow(uuid){
|
||||||
var cmp = zk.Widget.$(uuid);
|
try {
|
||||||
if (cmp) {
|
var cmp = zk.Widget.$(uuid);
|
||||||
cmp.scrollIntoView();
|
if (cmp) {
|
||||||
cmp.focus();
|
cmp.scrollIntoView();
|
||||||
}
|
cmp.focus();
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
if (console) console.log(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue