Improve SplitContainer behavior, keeping asked split whenever possible

This commit is contained in:
Gilles Roudière
2022-08-29 11:57:57 +02:00
parent 6ccbc27093
commit 2ddda13339
2 changed files with 55 additions and 37 deletions

View File

@@ -44,7 +44,6 @@ public:
};
private:
bool should_clamp_split_offset = false;
int split_offset = 0;
int middle_sep = 0;
bool vertical = false;
@@ -66,6 +65,7 @@ private:
Control *_getch(int p_idx) const;
Ref<Texture2D> _get_grabber_icon() const;
void _compute_middle_sep(bool p_clamp);
void _resort();
protected: