git-svn-id: svn://db.shs.com.ru/libs@449 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1638,8 +1638,10 @@ void BlockView::adjustThumb() {
|
|||||||
else
|
else
|
||||||
scl = thumb_size.height() / sr.height();
|
scl = thumb_size.height() / sr.height();
|
||||||
tr = sr * scl;
|
tr = sr * scl;
|
||||||
widget_thumb.setGeometry(QRect(QPoint(width() - tr.width() - 10 - verticalScrollBar()->width(),
|
int sx = verticalScrollBar()->isHidden() ? 0 : verticalScrollBar()->width();
|
||||||
height() - tr.height() - 10 - horizontalScrollBar()->height()), tr.toSize()));
|
int sy = horizontalScrollBar()->isHidden() ? 0 : horizontalScrollBar()->height();
|
||||||
|
widget_thumb.setGeometry(QRect(QPoint(width() - tr.width() - 10 - sx,
|
||||||
|
height() - tr.height() - 10 - sy), tr.toSize()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user