//updateCell(sheet, left > 0 ? left - 1 : 0, top > 1 ? top - 1 : 0, right + 1, bottom + 1);
updateCell(sheet, left, top, right, bottom);
}
private void updateMergeCell0(Worksheet 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);
final int w = helper.getStartPixel(block.getRight() + 1) - helper.getStartPixel(block.getLeft());
result.setData("width", w);
HeaderPositionHelper rhelper = Spreadsheet.this
.getRowPositionHelper(sheet);
final int h = rhelper.getStartPixel(block.getBottom() + 1) - rhelper.getStartPixel(block.getTop());
result.setData("height", h);
/**
* merge_ -> mergeCell
*/
response("mergeCell" + Utils.nextUpdateId(), new AuMergeCell(Spreadsheet.this, "", Utils.getSheetUuid(sheet), result.toString()));
}