ux: removes padding when calculate layouts

This commit is contained in:
leo 2024-08-12 12:03:30 +08:00
parent c9721c9fc1
commit 2e12717235
No known key found for this signature in database

View file

@ -164,7 +164,7 @@ namespace SourceGit.Views
if (!IsLoaded) if (!IsLoaded)
return; return;
var leftHeight = LeftSidebarGroups.Bounds.Height - 28.0 * 5; var leftHeight = LeftSidebarGroups.Bounds.Height - 28.0 * 5 - 4;
var localBranchRows = vm.IsLocalBranchGroupExpanded ? LocalBranchTree.Rows.Count : 0; var localBranchRows = vm.IsLocalBranchGroupExpanded ? LocalBranchTree.Rows.Count : 0;
var remoteBranchRows = vm.IsRemoteGroupExpanded ? RemoteBranchTree.Rows.Count : 0; var remoteBranchRows = vm.IsRemoteGroupExpanded ? RemoteBranchTree.Rows.Count : 0;
var desiredBranches = (localBranchRows + remoteBranchRows) * 24.0; var desiredBranches = (localBranchRows + remoteBranchRows) * 24.0;