mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style: use the larger size of image in diff view if it has two valid bitmaps
This commit is contained in:
parent
871751d7c0
commit
976c8da83c
1 changed files with 11 additions and 1 deletions
|
@ -110,7 +110,17 @@ namespace SourceGit.Views
|
|||
|
||||
if (left != null)
|
||||
{
|
||||
return GetDesiredSize(left.Size, availableSize);
|
||||
var lSize = GetDesiredSize(left.Size, availableSize);
|
||||
if (right != null)
|
||||
{
|
||||
var rSize = GetDesiredSize(right.Size, availableSize);
|
||||
if (rSize.Width > lSize.Width) return rSize;
|
||||
return lSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
return lSize;
|
||||
}
|
||||
}
|
||||
else if (right != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue