# Incorrect pane resizing after pane split followed by close

**URL:** <https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316>\
**Category:** Help\
**Tags:** ui-ux, panes\
**Created:** [August 23, 2024, 5:03pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316 "2024-08-23T17:03:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![clehene](https://forum.obsidian.md/user_avatar/forum.obsidian.md/clehene/32/42868_2.png) [@clehene](https://forum.obsidian.md/u/clehene)\
**Post date:** [August 23, 2024, 5:03pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316/1 "2024-08-23T17:03:54Z")

</div>

### Steps to reproduce

Open obsidian  
Split pane (splits: 1/2, 1/2)  
Adjust the split separation (splits: 1/2, 1/2  
Split within one of the splits (e.g. left) This will cause a division of the left split only, as expected (splits 1/4, /1/4, 1/2)  
Close one of the left 1/4 side splits

### Did you follow the [troubleshooting guide](https://forum.obsidian.md/t/about-the-bug-reports-category/24/10)? [Y]

### Expected result

splits: 1/2, 1/2

### Actual result

1/4, 3/4

### Environment

SYSTEM INFO:  
Obsidian version: v1.7.0  
Installer version: v1.6.7  
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE\_ARM64\_T6000 23.5.0  
Login status: logged in  
Catalyst license: supporter  
Insider build toggle: on  
Live preview: on  
Base theme: adapt to system  
Community theme: none  
Snippets enabled: 0  
Restricted mode: on

RECOMMENDATIONS:  
none

* * *

### Additional information

Basically what happens is that.  
If the split size separator is not touched, it works as expected and splits are always equally divided.  
When the separator is adjusted the behavior is buggy - not consistent with the separator.  
The solution should be trivial:  
When split separators are adjusted, treat the local configuration as you do for bot split and unspilt (closing splits). So the readjustment post a split pane close should snap back to the local “split boundary”.

Note that this needs to be recursive - in the sense that every time a split is manually adjusted it should form two sides that are now independently managed.

If the above is not clear, please ask and I can try to clarify.

Related bugs incorrectly closed

- [Pane resizing does not stick - #2 by DrBrush](https://forum.obsidian.md/t/pane-resizing-does-not-stick/16857/2)
- [Panes resize slightly when clicking the divider - #3 by clehene](https://forum.obsidian.md/t/panes-resize-slightly-when-clicking-the-divider/16822/3)

Here’s how it behaves without adjusting splits. This is how it should also behave after adjusting it - only that the behaviors should be “local” within the inner most  
 ![2024-08-23 09.48.55](https://forum.obsidian.md/uploads/default/original/3X/e/1/e1c4ebde1a4a70749f6bc779e21e53b682f6c5a3.gif)

- here’s how it behaves incorrectly, post resize
- ![2024-08-23 09.50.11](https://forum.obsidian.md/uploads/default/original/3X/d/f/df3e4e15b1e71108a301927dcf920037808a31ef.gif)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 23, 2024, 5:49pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316/2 "2024-08-23T17:49:56Z")

</div>

Ok this is not a bug and is intentional.  
It is a consequence of the fact that if you resize a pane, the split is created by dividing that pane (second screen recording) and not the whole workspace (first screen recording).

You can open a FR to ask for these two actions (split a pane, add a column) to be separated into two different commands. You can also open a plugin idea to propose a new way of recomputing the pane sizes when one pane is removed.

---

<div class="post-metadata">

**Author:** ![clehene](https://forum.obsidian.md/user_avatar/forum.obsidian.md/clehene/32/42868_2.png) [@clehene](https://forum.obsidian.md/u/clehene)\
**Post date:** [August 27, 2024, 9:55pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316/3 "2024-08-27T21:55:13Z")

</div>

I’m not sure I follow. The behavior I’m describing seems inconsistent with your description.

- the actual pane resizing (constraint) is violated after closing the tab
- more generally it violates UI consistency / reversibility principles- if I perform an action on the UI (open a tab) and then undo the action (close the tab) it should leave the UI in the original state

Moreover, I don’t think there should be two commands. It’s the same command within (arguably) different context, rather than two different actions. These two should be independent.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 27, 2024, 10:28pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316/4 "2024-08-27T22:28:50Z")

</div>

I understand.  
The current behavior is intentional and not a bug.  
If you are only concerned with the behavior after close, open a FR to propose a new way of recomputing the pane sizes when one pane is removed.

---

<div class="post-metadata">

**Author:** ![clehene](https://forum.obsidian.md/user_avatar/forum.obsidian.md/clehene/32/42868_2.png) [@clehene](https://forum.obsidian.md/u/clehene)\
**Post date:** [August 28, 2024, 3:46pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316/5 "2024-08-28T15:46:01Z")

</div>

Thanks for clarifying. Created [Adaptive pane resizing within fixed (resized) splits](https://forum.obsidian.md/t/adaptive-pane-resizing-within-fixed-resized-splits/87554)

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [September 25, 2024, 3:46pm UTC](https://forum.obsidian.md/t/incorrect-pane-resizing-after-pane-split-followed-by-close/87316/6 "2024-09-25T15:46:36Z")

</div>

Closed on September 25, 2024, 3:46pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
