Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] [SplitView] Inconsistent documentation #8062

Open
core-ai-bot opened this issue Aug 30, 2021 · 0 comments
Open

[CLOSED] [SplitView] Inconsistent documentation #8062

core-ai-bot opened this issue Aug 30, 2021 · 0 comments

Comments

@core-ai-bot
Copy link
Member

Issue by redmunds
Tuesday Sep 09, 2014 at 15:04 GMT
Originally opened as adobe/brackets#9024


In WorkspaceManager.js, the refreshHint param is documented as a {string}, but the caller and callees which use that param document it as a {boolean}:

    /**
     * Calculates a new size for editor-holder and resizes it accordingly, then and dispatches the "workspaceUpdateLayout"
     * event. (The editors within are resized by EditorManager, in response to that event).
     * 
     *`@`param {string=} refreshHint  One of "skip", "force", or undefined. See EditorManager docs.
     */
    function triggerUpdateLayout(refreshHint) {
        // Find how much space is left for the editor
        var editorAreaHeight = calcAvailableHeight();

        $editorHolder.height(editorAreaHeight);  // affects size of "not-editor" placeholder as well

        // Resize editor to fill the space
        $(exports).trigger("workspaceUpdateLayout", [editorAreaHeight, refreshHint]);
    }

@JeffryBooher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant