Skip to content

Commit 647ffc1

Browse files
author
uis
committed
fixed stackSize
1 parent e49ad6e commit 647ffc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stacklayout/src/main/java/com/uis/stackview/StackHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void executeScroll(int dx) {
261261

262262
void scaleTransChild(int dx){
263263
int cnt = layout.getChildCount();
264-
int stackSize = layout.stackSize;
264+
int stackSize = layout.getRealStackSize();
265265
int size = Math.min(cnt,stackSize)-(cnt==stackSize ? 1:0);
266266
int first = cnt > stackSize ? 1 : 0;
267267
int index = 0;

0 commit comments

Comments
 (0)