Skip to content

Commit

Permalink
fix(ios): fix modal view layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifanyuan committed Oct 20, 2023
1 parent 0f6a9a9 commit d553e0b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ @interface NativeRenderObjectModalHost : HippyShadowView

@implementation NativeRenderObjectModalHost

- (void)insertHippySubview:(HippyShadowView *)subview atIndex:(NSInteger)atIndex{
[super insertHippySubview:subview atIndex:atIndex];
CGRect frame = { .origin = CGPointZero, .size = NativeRenderScreenSize() };
[subview setLayoutFrame:frame];
}
- (void)setDomManager:(std::weak_ptr<hippy::DomManager>)domManager {
[super setDomManager:domManager];
CGRect frame = { .origin = CGPointZero, .size = NativeRenderScreenSize() };
Expand Down

0 comments on commit d553e0b

Please sign in to comment.