summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookweek.cpp7
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
@@ -315,5 +315,6 @@ void DateBookWeekView::resizeEvent( QResizeEvent *e )
QScrollView::resizeEvent( e );
- int avail = width()-qApp->style().scrollBarExtent().width()-1;
- header->setGeometry( 0, 0, avail, header->sizeHint().height() );
- setMargins( 0, header->height(), 0, 0 );
+ int avail = visibleWidth();
+ header->setGeometry( leftMargin()+frameWidth()+frameRect().left() , frameWidth(),
+ visibleWidth(), header->sizeHint().height() );
+ setMargins( 0, header->sizeHint().height(), 0, 0 );
header->resizeSection( 0, hourWidth );