Skip to content

Commit

Permalink
Adjust UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
skanmera committed Dec 25, 2017
1 parent 2967ea4 commit 66996f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ExcelMerge.GUI/Views/DiffViewEvent/DiffViewEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public void OnGotFocus(DiffViewEventArgs<RichTextBox> e)
var margin = 10;
var textHeightList = e.Container.ResolveAll<RichTextBox>().Select(rtb => CalculateTextBoxHeight(rtb) + margin);

var height = Math.Min(textHeightList.Max(), App.Instance.MainWindow.Height / 2);
var height = Math.Min(textHeightList.Max(), App.Instance.MainWindow.Height / 3);

foreach (var rtb in e.Container.ResolveAll<RichTextBox>())
rtb.Height = height;
Expand Down Expand Up @@ -372,7 +372,6 @@ private void SyncRowHeight(IUnityContainer container)
}
}


private void SyncScroll(FastGridControl src, FastGridControl dst)
{
dst.Scroll(src.FirstVisibleRowScrollIndex, src.FirstVisibleColumnScrollIndex, src.VerticalScrollBarOffset, src.HorizontalScrollBarOffset);
Expand Down

0 comments on commit 66996f3

Please sign in to comment.