Fix GraphFrame autoshrink with high DPI displays/custom UI scales

This commit is contained in:
Hendrik Brucker
2024-07-03 18:27:14 +02:00
parent 6a13fdcae3
commit b871794591
5 changed files with 13 additions and 5 deletions

View File

@@ -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;
}