Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] [Bugfix] When navigation ishidden, the weexinstance will relayo…
Browse files Browse the repository at this point in the history
…ut, it should modify WXRootView's frame, in same case it does't not work because of the execute sequence
  • Loading branch information
晨燕 committed Dec 13, 2018
1 parent 0a823bd commit c84e431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ - (void)layoutComponent:(WXComponent*)component frame:(CGRect)frame isRTL:(BOOL)

[component _setIsLayoutRTL:isRTL];
if (component == _rootComponent) {
if (!CGSizeEqualToSize(frame.size, self.weexInstance.frame.size)) {
if (!CGSizeEqualToSize(frame.size, self.weexInstance.frame.size) || !CGSizeEqualToSize(frame.size, self.weexInstance.rootView.frame.size)) {
// Synchronize view frame with root component, especially for content wrap mode.
WXPerformBlockOnMainThread(^{
if (!self.weexInstance.isRootViewFrozen) {
Expand Down

0 comments on commit c84e431

Please sign in to comment.