Skip to content

Don't Expand Window #1670

Closed Answered by markwbennett
markwbennett asked this question in Q&A
Discussion options

You must be logged in to vote
/**
 * Divides the screen into a main mainPaneWidth pane and a secondary pane which will get divided horizontally by all remaining windows.
 * @returns {{initialState: {mainPaneCount: number}, name: string, getFrameAssignments: (function(*, *, *): *)}}
 */
function layout()
{
    return {
        name: "65-45",
        initialState: {
            mainPaneCount: 1
        },
        getFrameAssignments: (windows, screenFrame, state) => {
            const mainPaneCount = Math.min(state.mainPaneCount, windows.length); // Is state.mainPaneCount ever > 1?
            const secondaryPaneCount = Math.max(windows.length - mainPaneCount, 0);
            const hasSecondaryPane = secondaryPaneCount…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by markwbennett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant