diff options
author | Mihaela Kedikova <misheto@openoffice.org> | 2010-11-09 16:44:07 +0100 |
---|---|---|
committer | Mihaela Kedikova <misheto@openoffice.org> | 2010-11-09 16:44:07 +0100 |
commit | 0fbdce7fd45d8e11e7b5482d79dd3f53899d7be3 (patch) | |
tree | 020113307520fdaf1c4cdadb217b353c135b9d93 | |
parent | 255a95f5cd74867c781051700c54f41bba4d6d95 (diff) |
gridcontrol07: some comments added
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index e2035c11a65c..6c58cb530330 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -952,9 +952,8 @@ namespace svt { namespace table if(m_nColHeaderHeightPixel>1) { m_pDataWindow->SetSizePixel( m_rAntiImpl.GetOutputSizePixel()); - //fix for 163360 - tests with other examples!!! if(m_bResizingGrid) - //update column widths to fit in grid - 18.10.10 + //update column widths to fit in grid impl_ni_updateColumnWidths(); m_bResizingGrid = true; } @@ -2020,8 +2019,9 @@ namespace svt { namespace table PColumnModel pColumn = m_pModel->getColumnModel(m_nCurColumn); impl_ni_getAccVisibleColWidths(); int newColWidth = m_aColumnWidthsPixel[m_nCurColumn]; - //subtract 1 from m_aAccColumnWidthPixel because right border should be part of the current cell + //make resize area for the separator wider int nLeft = m_aVisibleColumnWidthsPixel[resizingColumn]-4; + //subtract 1 from m_aAccColumnWidthPixel because right border should be part of the current cell int nRight = m_aVisibleColumnWidthsPixel[resizingColumn]-1; if( rPoint.X()> nLeft && rPoint.X()<nRight && pColumn->isResizable()) aNewPointer = Pointer( POINTER_HSPLIT ); @@ -2051,6 +2051,7 @@ namespace svt { namespace table m_bResizingGrid = false; m_nResizingColumn = m_nCurColumn; PColumnModel pColumn = m_pModel->getColumnModel(m_nResizingColumn); + //make resize area for the separator wider int nLeft = m_aVisibleColumnWidthsPixel[m_nResizingColumn-m_nLeftColumn]-4; int nRight = m_aVisibleColumnWidthsPixel[m_nResizingColumn-m_nLeftColumn]-1; if(rPoint.X()> nLeft && rPoint.X()<nRight && pColumn->isResizable()) |