diff options
author | Jürgen Schmidt <jsc@apache.org> | 2013-06-27 10:57:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-27 13:37:58 +0100 |
commit | 5080a76abbbb9f965bf9658e5f543188961d9ff8 (patch) | |
tree | 0f8eabb1e1b57079fdd2b5ebfb6a902b3edd3b6d /svtools/source | |
parent | 6391e823dcb5dd87b0f7f3039144b8cccd8626c8 (diff) |
Resolves: #i122586# recalcuate width when scrolling to last column
(cherry picked from commit febd0946e8c2686f0a679d3f32fbb39f5ef1c295)
Change-Id: Ia1aba1eddf9035504677d10a7414f9a498b952e1
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index cf89b13803dc..e27dbac76c8e 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -2063,6 +2063,7 @@ namespace svt { namespace table case TableAreaAll: m_pDataWindow->Invalidate(); + m_pDataWindow->GetParent()->Invalidate( INVALIDATE_TRANSPARENT ); break; } } @@ -2343,7 +2344,10 @@ namespace svt { namespace table m_pDataWindow->Scroll( 0, (long)-nPixelDelta, aDataArea, SCROLL_CLIP | SCROLL_UPDATE | SCROLL_CHILDREN); } else + { m_pDataWindow->Invalidate( INVALIDATE_UPDATE ); + m_pDataWindow->GetParent()->Invalidate( INVALIDATE_TRANSPARENT ); + } // update the position at the vertical scrollbar if ( m_pVScroll != NULL ) @@ -2420,7 +2424,10 @@ namespace svt { namespace table m_pDataWindow->Scroll( nPixelDelta, 0, aDataArea, SCROLL_CLIP | SCROLL_UPDATE ); } else + { m_pDataWindow->Invalidate( INVALIDATE_UPDATE ); + m_pDataWindow->GetParent()->Invalidate( INVALIDATE_TRANSPARENT ); + } // update the position at the horizontal scrollbar if ( m_pHScroll != NULL ) |