}
updateCell(sheet,left>0?left-1:0,top>1?top-1:0,right+1,bottom+1);
}
private void updateMergeCell0(Sheet sheet,MergedRect block,String type){
JSONObj result = new JSONObj();
result.setData("type", type);
result.setData("id", block.getId());
int left = block.getLeft();
int top = block.getTop();
int right = block.getRight();
int bottom = block.getBottom();
//don't check range to ignore update case,
//because I still need to sync merge cell data to client side
result.setData("left", left);
result.setData("top", top);
result.setData("right", right);
result.setData("bottom", bottom);
HeaderPositionHelper helper = Spreadsheet.this.getColumnPositionHelper(sheet);
int w = helper.getStartPixel(block.getRight()+1)-helper.getStartPixel(block.getLeft());
result.setData("width",w);
smartUpdateValues("merge_"+Utils.nextUpdateId(),new Object[]{"",Utils.getId(sheet),result.toString()});
}