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