projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c5621
)
lottie/example: fixed layout issue.
87/184187/2
author
subhransu mohanty
<sub.mohanty@samsung.com>
Mon, 16 Jul 2018 06:56:38 +0000
(15:56 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Mon, 16 Jul 2018 12:20:30 +0000
(12:20 +0000)
Change-Id: Id8795b63d13cca081d383f4e1303b990bdb723be
example/lottieviewtest.cpp
patch
|
blob
|
history
diff --git
a/example/lottieviewtest.cpp
b/example/lottieviewtest.cpp
index
169da1e
..
f11e280
100644
(file)
--- 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) {