reposition: function(animateConfig) {//按钮取消,被注销的是可以改变的东西。
var me = this,
context = me.context,
row = context && Ext.get(context.row),
//btns = me.getFloatingButtons(),
//btnEl = btns.el,
grid = me.editingPlugin.grid,
viewEl = grid.view.el,
scroller = grid.verticalScroller,
mainBodyWidth = grid.headerCt.getFullWidth(),
scrollerWidth = grid.getWidth(),
width = Math.min(mainBodyWidth, scrollerWidth),
scrollLeft = grid.view.el.dom.scrollLeft,
//btnWidth = btns.getWidth(),
//left = (width - btnWidth) / 2 + scrollLeft,
y, rowH, newHeight,
invalidateScroller = function() {
if (scroller) {
scroller.invalidate();
// btnEl.scrollIntoView(viewEl, false);
}
if (animateConfig && animateConfig.callback) {
animateConfig.callback.call(animateConfig.scope || me);
}
};
completeEdit: function() { //退出隐藏
var me = this,
form = me.getForm();
if (!form.isValid()) {
return;
}
form.updateRecord(me.context.record);
//me.hide();
return true;
},
completeEdit: function() { //还原
var me = this;
if (me.editing && me.validateEdit()) {
// me.editing = false;
me.fireEvent('edit', me.context);
}
},
var me = this,
context = me.context,
row = context && Ext.get(context.row),
//btns = me.getFloatingButtons(),
//btnEl = btns.el,
grid = me.editingPlugin.grid,
viewEl = grid.view.el,
scroller = grid.verticalScroller,
mainBodyWidth = grid.headerCt.getFullWidth(),
scrollerWidth = grid.getWidth(),
width = Math.min(mainBodyWidth, scrollerWidth),
scrollLeft = grid.view.el.dom.scrollLeft,
//btnWidth = btns.getWidth(),
//left = (width - btnWidth) / 2 + scrollLeft,
y, rowH, newHeight,
invalidateScroller = function() {
if (scroller) {
scroller.invalidate();
// btnEl.scrollIntoView(viewEl, false);
}
if (animateConfig && animateConfig.callback) {
animateConfig.callback.call(animateConfig.scope || me);
}
};
completeEdit: function() { //退出隐藏
var me = this,
form = me.getForm();
if (!form.isValid()) {
return;
}
form.updateRecord(me.context.record);
//me.hide();
return true;
},
completeEdit: function() { //还原
var me = this;
if (me.editing && me.validateEdit()) {
// me.editing = false;
me.fireEvent('edit', me.context);
}
},