|
@@ -17,6 +17,8 @@ import com.reactnativenavigation.views.TopBar;
|
17
|
17
|
import java.util.Collection;
|
18
|
18
|
import java.util.Iterator;
|
19
|
19
|
|
|
20
|
+import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
|
|
21
|
+
|
20
|
22
|
public class StackController extends ParentController <StackLayout> {
|
21
|
23
|
|
22
|
24
|
private static final NoOpPromise NO_OP = new NoOpPromise();
|
|
@@ -55,7 +57,7 @@ public class StackController extends ParentController <StackLayout> {
|
55
|
57
|
child.setParentController(this);
|
56
|
58
|
stack.push(child.getId(), child);
|
57
|
59
|
View enteringView = child.getView();
|
58
|
|
- getView().addView(enteringView);
|
|
60
|
+ getView().addView(enteringView, MATCH_PARENT, MATCH_PARENT);
|
59
|
61
|
|
60
|
62
|
if (toRemove != null) {
|
61
|
63
|
getView().removeView(toRemove.getView());
|
|
@@ -69,7 +71,7 @@ public class StackController extends ParentController <StackLayout> {
|
69
|
71
|
child.setParentController(this);
|
70
|
72
|
stack.push(child.getId(), child);
|
71
|
73
|
View enteringView = child.getView();
|
72
|
|
- getView().addView(enteringView);
|
|
74
|
+ getView().addView(enteringView, MATCH_PARENT, MATCH_PARENT);
|
73
|
75
|
|
74
|
76
|
if (toRemove != null) {
|
75
|
77
|
animator.animatePush(enteringView, () -> {
|