Please attach some crash logs.

And pull request is welcome.


Thanks.
Adam Feng

On 2017年3月30日 +0800 AM11:10, yuedong (JIRA) <[email protected]>, wrote:
> yuedong created WEEX-19:
> ---------------------------
>
> Summary: Weex(iOS),If want to let the frame adjust content's height, you need 
> set frame(0, 0, width, NAN), but it sometime will crash
> Key: WEEX-19
> URL: https://issues.apache.org/jira/browse/WEEX-19
> Project: Weex
> Issue Type: Bug
> Environment: iOS
> Reporter: yuedong
>
>
> - (void)setFrame:(CGRect)frame
> {
> if (!CGRectEqualToRect(frame, _frame)) {
> _frame = frame;
> WXPerformBlockOnMainThread(^{
> if (_rootView) {
> _rootView.frame = frame;
> WXPerformBlockOnComponentThread(^{
> [self.componentManager rootViewFrameDidChange:frame];
> });
> }
> });
> }
> }
>
> if the _rootView is not nil, the frame(0, 0, width, NAN) will direct set to 
> _rootView, then will crash.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.15#6346)

Reply via email to