# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1618014874 0 # Node ID 6edaa93820464e88cdc89877f4d16626decb3914 # Parent 7e1828dd4fe0a8d1c88be8bc5cb0df9ce6d9f294 iOS: Fix scrolling the scrollbox. Make sure scrolling is enabled and set the content size on the UIScrollView after we calculate the size. diff -r 7e1828dd4fe0 -r 6edaa9382046 ios/dw.m --- a/ios/dw.m Fri Apr 09 23:38:59 2021 +0000 +++ b/ios/dw.m Sat Apr 10 00:34:34 2021 +0000 @@ -2873,6 +2873,7 @@ { frame.size.height = thisbox->minheight; } + [scrollbox setContentSize:frame.size]; [contentbox setFrame:frame]; /* Layout the content of the scrollbox */ @@ -3343,6 +3344,7 @@ dw_box_pack_start(tmpbox, box, 1, 1, TRUE, TRUE, 0); [scrollbox setBox:box]; [scrollbox addSubview:tmpbox]; + [scrollbox setScrollEnabled:YES]; [tmpbox autorelease]; DW_FUNCTION_RETURN_THIS(scrollbox); }