summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-10 13:49:20 +0000
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-01-11 00:54:27 +0000
commit90fe1b210025c19e885b093bf2f556d5b62f9dd4 (patch)
tree32382982814537fc6853d7388a2ac6bcd3295bc8
parentd32d05c70bc8e6389e80b33f5a7156ff7836f6da (diff)
Resolves: fdo#59112 re-scroll to current entry when dialog resized
Change-Id: I96486f6edad11520bf9bb43b700b1716d9b2f170 (cherry picked from commit 2c403c7f36561410418ebb9f86664e46a8c1c968) Reviewed-on: https://gerrit.libreoffice.org/1628 Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com> Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
-rw-r--r--sc/source/ui/dbgui/sortkeydlg.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/sortkeydlg.cxx b/sc/source/ui/dbgui/sortkeydlg.cxx
index 45d65ca7e5e0..e71a48fc2fcb 100644
--- a/sc/source/ui/dbgui/sortkeydlg.cxx
+++ b/sc/source/ui/dbgui/sortkeydlg.cxx
@@ -127,6 +127,7 @@ void ScSortKeyCtrl::setScrollRange()
sal_Int32 nVisibleItems = m_rScrolledWindow.getVisibleChildSize().Height() / nScrollOffset;
m_rVertScroll.SetPageSize( nVisibleItems - 1 );
m_rVertScroll.SetVisibleSize( nVisibleItems );
+ m_rVertScroll.Scroll();
}
// -----------------------------------------------------------------------