From 17871b8811baa9478b2b3247e340aa21bb64e06e Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 30 May 2015 16:43:59 +0200 Subject: implemented Skin Repositories --- libtemplate/templatefunction.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libtemplate/templatefunction.c') diff --git a/libtemplate/templatefunction.c b/libtemplate/templatefunction.c index 246db23..b2bad34 100644 --- a/libtemplate/templatefunction.c +++ b/libtemplate/templatefunction.c @@ -548,7 +548,7 @@ int cTemplateFunction::GetWidth(bool cutted) { return funcWidth; } -int cTemplateFunction::GetHeight(void) { +int cTemplateFunction::GetHeight(map < string, vector< map< string, string > > > *loopTokens) { int funcHeight = 0; switch (type) { case ftDrawText: @@ -578,9 +578,12 @@ int cTemplateFunction::GetHeight(void) { textboxHeight = funcHeight; } break; } - case ftLoop: - //TODO: to be implemented - break; + case ftLoop: { + cTemplateLoopFunction *loopFunc = dynamic_cast(this); + if (loopFunc) { + funcHeight = loopFunc->CalculateHeight(loopTokens); + } + break; } default: esyslog("skindesigner: GetHeight not implemented for funcType %d", type); break; -- cgit v1.2.3