Kaydet (Commit) 712c1c41 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud Kaydeden (comit) Miklos Vajna

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/551Reviewed-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
Tested-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
üst 1e826e71
...@@ -1237,9 +1237,6 @@ namespace svt { namespace table ...@@ -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, // 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. // we know that this is not the case, re-calculate the column widths.
if ( !bNeedVerticalScrollbar ) if ( !bNeedVerticalScrollbar )
...@@ -1293,6 +1290,9 @@ namespace svt { namespace table ...@@ -1293,6 +1290,9 @@ namespace svt { namespace table
colPos->move( offsetPixel ); colPos->move( offsetPixel );
} }
} }
// show or hide the scrollbars as needed, and position the data window
impl_ni_positionChildWindows( aDataCellPlayground, bNeedVerticalScrollbar, bNeedHorizontalScrollbar );
} }
//------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment