ensureCellSpanUnderCoordVisibility(coord: PP.Ui.TabSheetCoord);
coord. Coordinate inside of a merged cell range.
The ensureCellSpanUnderCoordVisibility method changes visible table area so that to show the range of merged cells.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Create a range of merged cells, select this range and change visible table area to show this range:
// Get a cell range by the specified coordinates
var range = tabSheet.getRange(2, 4, 3, 3);
// Merge cells by the obtained range
tabSheet.merge(range);
// Select the range
range.select();
// Get the range of merged cells
var span = tabSheet.getCellSpanUnderCoord(tabSheet.getSelectedCoord());
if (tabSheet.isCellSpanVisible(span)) {
// Make sure that the cell span under the coordinate is in the visible area
tabSheet.ensureCellSpanUnderCoordVisibility(span.getCoord())
};
After executing the example a range of merged cells is created, selected and shown in the visible table area:

See also: