You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
focus box size fix for new theme
This commit is contained in:
@@ -1897,11 +1897,6 @@ void CanvasItemEditor::_viewport_draw() {
|
|||||||
|
|
||||||
if (viewport->has_focus()) {
|
if (viewport->has_focus()) {
|
||||||
Size2 size = viewport->get_size();
|
Size2 size = viewport->get_size();
|
||||||
if (v_scroll->is_visible_in_tree())
|
|
||||||
size.width -= v_scroll->get_size().width;
|
|
||||||
if (h_scroll->is_visible_in_tree())
|
|
||||||
size.height -= h_scroll->get_size().height;
|
|
||||||
|
|
||||||
get_stylebox("Focus", "EditorStyles")->draw(ci, Rect2(Point2(), size));
|
get_stylebox("Focus", "EditorStyles")->draw(ci, Rect2(Point2(), size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user