From f453e0089db37ed0e5541f7a16a960c9f88a5dfa Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Wed, 14 Nov 2018 08:24:26 +0900 Subject: [PATCH] Fix github issue#105 Scrolling issue --HG-- branch : stable --- Src/GhostTextView.cpp | 1 + Src/MergeEditView.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Src/GhostTextView.cpp b/Src/GhostTextView.cpp index 58c9a1756..47b9aeaf0 100644 --- a/Src/GhostTextView.cpp +++ b/Src/GhostTextView.cpp @@ -154,6 +154,7 @@ void CGhostTextView::PopCursors () int nDummy; GetLineBySubLine( m_nTopSubLine, m_nTopLine, nDummy ); RecalcVertScrollBar(true); + RecalcHorzScrollBar(); } void CGhostTextView::PushCursors () diff --git a/Src/MergeEditView.cpp b/Src/MergeEditView.cpp index f09c3844e..4f61d6d20 100644 --- a/Src/MergeEditView.cpp +++ b/Src/MergeEditView.cpp @@ -723,6 +723,7 @@ void CMergeEditView::OnUpdateSibling (CCrystalTextView * pUpdateSource, bool bHo ScrollToSubLine (pSrcView->m_nTopSubLine, true, false); UpdateCaret (); RecalcVertScrollBar(true); + RecalcHorzScrollBar(); } } else @@ -737,6 +738,7 @@ void CMergeEditView::OnUpdateSibling (CCrystalTextView * pUpdateSource, bool bHo ScrollToChar (pSrcView->m_nOffsetChar, true, false); UpdateCaret (); RecalcHorzScrollBar(true); + RecalcHorzScrollBar(); } } } -- 2.11.0