scroller.Position2D = new Position2D(120, 136);
scroller.Size2D = new Size2D(944, 268);
+ // workaround crash issue in ScrollableBase
+ var scrollerContent = new View
+ {
+ WidthResizePolicy = ResizePolicyType.FillToParent,
+ HeightResizePolicy = ResizePolicyType.FitToChildren,
+ Layout = new LinearLayout(),
+ };
+
// Do not use style on content as it seriously impacts scrolling
// performance on ScrollableBase
TextLabel content = new TextLabel();
content.MultiLine = true;
content.WidthResizePolicy = ResizePolicyType.FillToParent;
- scroller.Add(content);
+ scrollerContent.Add(content);
+ scroller.Add(scrollerContent);
scroller.ScrollEvent += (object sender, ScrollableBase.ScrollEventArgs args) =>
{
if (IsScrolledToLastPage(sender as ScrollableBase))