You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Adam Feng (JIRA)" <ji...@apache.org> on 2018/04/05 05:32:00 UTC
[jira] [Resolved] (WEEX-19) 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
[ https://issues.apache.org/jira/browse/WEEX-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Feng resolved WEEX-19.
---------------------------
Resolution: Fixed
> 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
> Assignee: xingZhang
> Priority: Major
>
> - (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
(v7.6.3#76005)