mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix GraphFrame autoshrink with high DPI displays/custom UI scales
This commit is contained in:
@@ -262,6 +262,10 @@ HBoxContainer *GraphFrame::get_titlebar_hbox() {
|
||||
return titlebar_hbox;
|
||||
}
|
||||
|
||||
Size2 GraphFrame::get_titlebar_size() const {
|
||||
return titlebar_hbox->get_size() + theme_cache.titlebar->get_minimum_size();
|
||||
}
|
||||
|
||||
void GraphFrame::set_drag_margin(int p_margin) {
|
||||
drag_margin = p_margin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user