Fix ScriptTextEditor resizing issue

This commit is contained in:
Simon Döhl 2026-02-14 13:04:08 +01:00
parent bf95b62586
commit ecf1f8d960
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="ScriptEditorBase" inherits="Control" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<class name="ScriptEditorBase" inherits="VBoxContainer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
Base editor for editing scripts in the [ScriptEditor].
</brief_description>

View file

@ -31,13 +31,14 @@
#pragma once
#include "editor/gui/code_editor.h"
#include "scene/gui/box_container.h"
class EditorSyntaxHighlighter;
class MenuButton;
class VSplitContainer;
class ScriptEditorBase : public Control {
GDCLASS(ScriptEditorBase, Control);
class ScriptEditorBase : public VBoxContainer {
GDCLASS(ScriptEditorBase, VBoxContainer);
protected:
Ref<Resource> edited_res;