diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-05 22:57:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 22:57:04 +0200 |
commit | 0ad5fa602532a4f76b9e7767b217bea1692203b0 (patch) | |
tree | a218ffe323379ca84a610024bf25fa55303f2bcf | |
parent | 9de5698ee21c2e834eec9b39c2f9e1492ff018d4 (diff) | |
parent | 51aa57328abdab40d97477848ecb31ca03f2b021 (diff) |
Merge pull request #38080 from guilhermefelipecgs/small_fixes
[Node3DEditorViewport] Add correct margin for rotation control and fps label.
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 8d62d0a20d..7730f7f294 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -4702,7 +4702,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p frame_time_gradient->add_point(0.5, Color()); top_right_vbox = memnew(VBoxContainer); - top_right_vbox->set_anchors_and_offsets_preset(PRESET_TOP_RIGHT, PRESET_MODE_MINSIZE, 2.0 * EDSCALE); + top_right_vbox->set_anchors_and_offsets_preset(PRESET_TOP_RIGHT, PRESET_MODE_MINSIZE, 10.0 * EDSCALE); top_right_vbox->set_h_grow_direction(GROW_DIRECTION_BEGIN); // Make sure frame time labels don't touch the viewport's edge. top_right_vbox->set_custom_minimum_size(Size2(100, 0) * EDSCALE); |