Skip to content

Commit

Permalink
Restore splitter persistence
Browse files Browse the repository at this point in the history
Co-authored-by: RussKie <russkie@gmail.com>
  • Loading branch information
mstv and RussKie committed Sep 24, 2021
1 parent 6f9bf27 commit 8b5e21c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions GitUI/CommandsDialogs/FormBrowse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2505,6 +2505,13 @@ private void SetSplitterPositions()

_splitterManager.RestoreSplitters();
RefreshLayoutToggleButtonStates();

// Since #8849 and #8557 we have a geometry bug, which pushes the splitter up by 4px.
// Account for this shift. This is a workaround at best in the same way as for FormCommit.
if (!RevisionsSplitContainer.Panel2Collapsed)
{
RevisionsSplitContainer.SplitterDistance -= 4;
}
}

private void CommandsToolStripMenuItem_DropDownOpening(object sender, EventArgs e)
Expand Down

0 comments on commit 8b5e21c

Please sign in to comment.