Mercurial > dwindows
diff ios/dw.m @ 2449:6edaa9382046
iOS: Fix scrolling the scrollbox. Make sure scrolling is enabled and set the
content size on the UIScrollView after we calculate the size.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 10 Apr 2021 00:34:34 +0000 |
parents | 7e1828dd4fe0 |
children | 2c03987c95bd |
line wrap: on
line diff
--- 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); }