Avoid drawing the scroll bars if the widget is non-visible
This commit is contained in:
parent
7c46d52ef4
commit
b9ef1200e8
|
@ -556,6 +556,8 @@ void FTextView::adjustSize()
|
||||||
hbar->setValue (xoffset);
|
hbar->setValue (xoffset);
|
||||||
hbar->resize();
|
hbar->resize();
|
||||||
|
|
||||||
|
if ( isShown() )
|
||||||
|
{
|
||||||
if ( last_line < int(height) + nf_offset - 1 )
|
if ( last_line < int(height) + nf_offset - 1 )
|
||||||
vbar->hide();
|
vbar->hide();
|
||||||
else
|
else
|
||||||
|
@ -565,6 +567,7 @@ void FTextView::adjustSize()
|
||||||
hbar->hide();
|
hbar->hide();
|
||||||
else
|
else
|
||||||
hbar->show();
|
hbar->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue