You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
This reverts commits185b1a5bd3and19ad31b89f. The original PR and its fixup still had regressions, so we're going back to the drawing board to reattempt fixing #43749. Fixes #64785. Fixes #64851. Fixes #64866.
This commit is contained in:
@@ -97,16 +97,12 @@ void SplitContainer::_resort() {
|
||||
|
||||
// Compute the final middle separation.
|
||||
middle_sep = no_offset_middle_sep;
|
||||
if (prev_no_offset_middle_sep != INT_MAX) {
|
||||
split_offset -= middle_sep - prev_no_offset_middle_sep;
|
||||
}
|
||||
prev_no_offset_middle_sep = middle_sep;
|
||||
|
||||
if (!collapsed) {
|
||||
int clamped_split_offset = CLAMP(split_offset, ms_first[axis] - no_offset_middle_sep, (get_size()[axis] - ms_second[axis] - sep) - no_offset_middle_sep);
|
||||
middle_sep += clamped_split_offset;
|
||||
if (should_clamp_split_offset) {
|
||||
split_offset = clamped_split_offset;
|
||||
|
||||
should_clamp_split_offset = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user