diff options
Diffstat (limited to 'complexcontent.c')
-rw-r--r-- | complexcontent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/complexcontent.c b/complexcontent.c index d1301c77..d77a1139 100644 --- a/complexcontent.c +++ b/complexcontent.c @@ -81,7 +81,8 @@ void cComplexContent::CalculateDrawPortHeight(void) { if( (*it).GetBottom() > DrawPortHeight ) DrawPortHeight = (*it).GetBottom(); } - DrawPortHeight = ScrollTotal() * ScrollSize; + if( isScrollingActive ) + DrawPortHeight = ScrollTotal() * ScrollSize; } int cComplexContent::BottomContent(void) { @@ -97,6 +98,7 @@ int cComplexContent::BottomContent(void) { int cComplexContent::ContentHeight( bool Full ) { if( Full ) return Height(); + CalculateDrawPortHeight(); if( DrawPortHeight > Height() ) return Height(); |