zed icon indicating copy to clipboard operation
zed copied to clipboard

Split divider missing when left pane is active

Open diocletiann opened this issue 1 year ago • 4 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

~~It shows up for a moment with the scroll bar but then disappears~~ edit: that was the scrollbar area border, the split divider doesn't show up. When the right pane is active it looks normal.

Environment

Zed: v0.120.3 (Zed Preview) OS: macOS 14.3.0 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

diocletiann avatar Jan 27 '24 07:01 diocletiann

I haven't been able to reproduce this yet in Zed Preview v0.120.3:

Screenshot 2024-01-28 at 11 17 41 AM

maxdeviant avatar Jan 28 '24 16:01 maxdeviant

I haven't been able to reproduce this yet in Zed Preview v0.120.3:

Ah, I see why. It happens when using "active_pane_magnification".

diocletiann avatar Jan 28 '24 18:01 diocletiann

I haven't been able to reproduce this yet in Zed Preview v0.120.3:

Ah, I see why. It happens when using "active_pane_magnification".

What do you have your active_pane_magnification value set at?

maxdeviant avatar Feb 02 '24 17:02 maxdeviant

I haven't been able to reproduce this yet in Zed Preview v0.120.3:

Ah, I see why. It happens when using "active_pane_magnification".

What do you have your active_pane_magnification value set at?

1.8

diocletiann avatar Feb 02 '24 17:02 diocletiann

I've tracked down the bug and found that it is all about the code block:

for (ix, child_layout) in layout.children.iter_mut().enumerate() {
    if active_pane_magnification.is_none() {
        if ix < len - 1 {
            child_layout.handle =
                Some(Self::layout_handle(self.axis, child_layout.bounds, cx));
        }
    }
}

When i delete the if condition the bug disappeared.

for (ix, child_layout) in layout.children.iter_mut().enumerate() {
    if ix < len - 1 {
        child_layout.handle =
            Some(Self::layout_handle(self.axis, child_layout.bounds, cx));
    }
}

But i did not understand why there is a condition for if active_pane_magnification.is_none() and is it have any side effects when deleted. Any thoughts?

tugkanpilka avatar Apr 09 '24 07:04 tugkanpilka