diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-11-09 16:49:57 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-11-09 16:49:57 +0100 |
commit | a4cfb3c53d7c5dbd7904ccacb1c3f65773ef0c6f (patch) | |
tree | 70526941e6cccae13923f01a43b092b3fc20bffa /complexcontent.c | |
parent | 521a6dc17ed9fc515e5f1bc8bfaf95ce04e83e8c (diff) | |
download | skin-flatplus-a4cfb3c53d7c5dbd7904ccacb1c3f65773ef0c6f.tar.gz skin-flatplus-a4cfb3c53d7c5dbd7904ccacb1c3f65773ef0c6f.tar.bz2 |
add main menu widgets
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(); |