diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-09-03 16:11:42 -0500 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-14 07:50:48 +0000 |
commit | 712c1c41721bc50a8106fa3b5892a617b3ee542a (patch) | |
tree | 239dba19db41259c7dd454bdf9d4827ad574e27c /svtools | |
parent | 1e826e71e78f9f6609dc93e3f1d81eb4e418f4d6 (diff) |
gridfixes: impl_ni_relayout: update the child window position/size last
it relies on the other calculations (in particular calculation of the
column widths) being finished
Change-Id: I599aa5b2938e2aa810980c00ac8f598b4f4fcfcb
Reviewed-on: https://gerrit.libreoffice.org/551
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index df6bbbc290c6..aca789e97ad1 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -1237,9 +1237,6 @@ namespace svt { namespace table } } - // show or hide the scrollbars as needed - impl_ni_positionChildWindows( aDataCellPlayground, bNeedVerticalScrollbar, bNeedHorizontalScrollbar ); - // the initial call to impl_ni_calculateColumnWidths assumed that we need a vertical scrollbar. If, by now, // we know that this is not the case, re-calculate the column widths. if ( !bNeedVerticalScrollbar ) @@ -1293,6 +1290,9 @@ namespace svt { namespace table colPos->move( offsetPixel ); } } + + // show or hide the scrollbars as needed, and position the data window + impl_ni_positionChildWindows( aDataCellPlayground, bNeedVerticalScrollbar, bNeedHorizontalScrollbar ); } //------------------------------------------------------------------------------------------------------------------ |