diff --git a/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs b/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs index def1a51..7281d79 100644 --- a/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs +++ b/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs @@ -25,7 +25,7 @@ public partial class ProblemsPanel : Control public override void _Ready() { - _tree = GetNode("ScrollContainer/Tree"); + _tree = GetNode("%Tree"); _rootItem = _tree.CreateItem(); _rootItem.SetText(0, "Problems"); Observable.EveryValueChanged(this, manager => manager.Solution) diff --git a/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.tscn b/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.tscn index 38c48e9..697dc9b 100644 --- a/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.tscn +++ b/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.tscn @@ -19,15 +19,32 @@ WarningIcon = ExtResource("2_xj8le") ErrorIcon = ExtResource("3_sap6e") CsprojIcon = ExtResource("4_wqdox") -[node name="ScrollContainer" type="ScrollContainer" parent="."] +[node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +theme_override_constants/separation = 0 -[node name="Tree" type="Tree" parent="ScrollContainer"] +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 5 +theme_override_constants/margin_top = 5 +theme_override_constants/margin_right = 5 +theme_override_constants/margin_bottom = 5 + +[node name="Label" type="Label" parent="VBoxContainer/MarginContainer"] +layout_mode = 2 +text = "Problems" + +[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 + +[node name="Tree" type="Tree" parent="VBoxContainer/ScrollContainer"] +unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3