src/view/MainViewManager.js
function setLayoutScheme(rows, columns) {
        if ((rows < 1) || (rows > 2) || (columns < 1) || (columns > 2) || (columns === 2 && rows === 2)) {
            console.error("setLayoutScheme unsupported layout " + rows + ", " + columns);
            return false;
        }

        if (rows === columns) {
            _mergePanes();
        } else if (rows > columns) {
            _doSplit(HORIZONTAL);
        } else {
            _doSplit(VERTICAL);
        }
        return true;
    }
function setLayoutScheme(rows, columns) {
        if ((rows < 1) || (rows > 2) || (columns < 1) || (columns > 2) || (columns === 2 && rows === 2)) {
            console.error("setLayoutScheme unsupported layout " + rows + ", " + columns);
            return false;
        }

        if (rows === columns) {
            _mergePanes();
        } else if (rows > columns) {
            _doSplit(HORIZONTAL);
        } else {
            _doSplit(VERTICAL);
        }
        return true;
    }
function setLayoutScheme ( rows , columns ) { if ( ( rows < 1 ) || ( rows > 2 ) || ( columns < 1 ) || ( columns > 2 ) || ( columns === 2 && rows === 2 ) ) { console . error ( "setLayoutScheme unsupported layout " + rows + ", " + columns ) ; return false ; } if ( rows === columns ) { _mergePanes ( ) ; } else if ( rows > columns ) { _doSplit ( HORIZONTAL ) ; } else { _doSplit ( VERTICAL ) ; } return true ; }
Changes the layout scheme
@param {!number} rows (may be 1 or 2)
@param {!number} columns (may be 1 or 2)
@summay Rows or Columns may be 1 or 2 but both cannot be 2. 1x2, 2x1 or 1x1 are the legal values
Changes the layout scheme