-rw-r--r-- | core/pim/datebook/datebookweek.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/datebook/datebookweek.cpp b/core/pim/datebook/datebookweek.cpp index ab7e963..dad1c3f 100644 --- a/core/pim/datebook/datebookweek.cpp +++ b/core/pim/datebook/datebookweek.cpp | |||
@@ -313,9 +313,10 @@ void DateBookWeekView::resizeEvent( QResizeEvent *e ) | |||
313 | { | 313 | { |
314 | const int hourWidth = 20; | 314 | const int hourWidth = 20; |
315 | QScrollView::resizeEvent( e ); | 315 | QScrollView::resizeEvent( e ); |
316 | int avail = width()-qApp->style().scrollBarExtent().width()-1; | 316 | int avail = visibleWidth(); |
317 | header->setGeometry( 0, 0, avail, header->sizeHint().height() ); | 317 | header->setGeometry( leftMargin()+frameWidth()+frameRect().left() , frameWidth(), |
318 | setMargins( 0, header->height(), 0, 0 ); | 318 | visibleWidth(), header->sizeHint().height() ); |
319 | setMargins( 0, header->sizeHint().height(), 0, 0 ); | ||
319 | header->resizeSection( 0, hourWidth ); | 320 | header->resizeSection( 0, hourWidth ); |
320 | int sw = (avail - hourWidth) / 7; | 321 | int sw = (avail - hourWidth) / 7; |
321 | for ( int i = 1; i < 7; i++ ) | 322 | for ( int i = 1; i < 7; i++ ) |