From: subhransu mohanty Date: Mon, 16 Jul 2018 06:56:38 +0000 (+0900) Subject: lottie/example: fixed layout issue. X-Git-Tag: submit/tizen/20180917.042405~247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a798a8429f7df10a7194605e5ba8f3172ba537ff;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie/example: fixed layout issue. Change-Id: Id8795b63d13cca081d383f4e1303b990bdb723be --- diff --git a/example/lottieviewtest.cpp b/example/lottieviewtest.cpp index 169da1e..f11e280 100644 --- a/example/lottieviewtest.cpp +++ b/example/lottieviewtest.cpp @@ -51,11 +51,10 @@ public: if (mResource.empty()) return; int count = mResource.size(); - int colums = sqrt(count); - int rows = (count % colums) ? colums+1 : colums; + int colums = (int) ceil(sqrt(count)); int offset = 3; int vw = (mApp->width() - (2 * offset * colums))/colums; - int vh = (mApp->height() - (2 * offset * rows))/rows; + int vh = vw; int posx = offset; int posy = offset; for(auto i : mResource) {