mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge pull request #3943 from adobe/pflynn/panel-management
Improved panel management - prevent resizing panels larger than available space
This commit is contained in:
commit
bcb7d51cd7
11 files changed
+388
-138
No files matched your search
@@ -49,26 +49,15 @@ define(function (require, exports, module) {
|
||||
DocumentManager.setCurrentDocument(doc);
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Returns an Editor suitable for use in isolation, given a Document. (Unlike
|
||||
* SpecRunnerUtils.createMockEditor(), which is given text and creates the Document
|
||||
* for you).
|
||||
* Returns an Editor suitable for use in isolation, given a Document.
|
||||
*
|
||||
* @param {Document} doc - the document to be contained by the new Editor
|
||||
* @return {Editor} - the mock editor object
|
||||
*/
|
||||
function createMockEditor(doc) {
|
||||
// Initialize EditorManager
|
||||
var $editorHolder = $("<div id='mock-editor-holder'/>");
|
||||
EditorManager.setEditorHolder($editorHolder);
|
||||
$("body").append($editorHolder);
|
||||
|
||||
// create Editor instance
|
||||
var editor = new Editor(doc, true, $editorHolder.get(0));
|
||||
|
||||
EditorManager._notifyActiveEditorChanged(editor);
|
||||
|
||||
return editor;
|
||||
return SpecRunnerUtils.createMockEditorForDocument(doc);
|
||||
}
|
||||
|
||||
describe("JavaScript Code Hinting", function () {
|
||||
|
||||
Reference in new issue
Block a user