diff --git a/doric-android/doric/src/main/java/pub/doric/shader/slider/NestedSliderNode.java b/doric-android/doric/src/main/java/pub/doric/shader/slider/NestedSliderNode.java index 825f2f50..ea3cb61c 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/slider/NestedSliderNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/slider/NestedSliderNode.java @@ -207,7 +207,7 @@ public class NestedSliderNode extends GroupNode implements ViewPager. } } else { //Insert - ViewNode newNode = ViewNode.create(getDoricContext(), type); + ViewNode newNode = ViewNode.create(getDoricContext(), type); newNode.setId(id); newNode.init(this); newNode.blend(model.getProperty("props").asObject()); @@ -217,7 +217,7 @@ public class NestedSliderNode extends GroupNode implements ViewPager. } int size = mChildNodes.size(); for (int idx = mChildViewIds.size(); idx < size; idx++) { - ViewNode viewNode = mChildNodes.remove(mChildViewIds.size()); + ViewNode viewNode = mChildNodes.remove(mChildViewIds.size()); slideItems.remove(viewNode.getNodeView()); } mView.getAdapter().notifyDataSetChanged(); diff --git a/doric-demo/src/StickDemo.ts b/doric-demo/src/StickDemo.ts index 2d5d9d33..4f65404a 100644 --- a/doric-demo/src/StickDemo.ts +++ b/doric-demo/src/StickDemo.ts @@ -60,6 +60,7 @@ class StickDemo extends Panel { }), (new NestedSlider).also(v => { + v.scrollable = false this.sliderView = v; v.onPageSlided = (idx) => { this.refreshTabs(idx)