Explorar el Código

Revert "Fixed LightBox not updating overlay width/height on rotate" (#1657)

* Revert "Add custom bar button item class (#1641)"

This reverts commit 80ae102456.

* Revert "Export `Navigator` class for public use (#1647)"

This reverts commit 1770113321.

* Revert "Hide back button when calling resetTo (#1469)"

This reverts commit 518e372e05.

* Revert "Add isRootLaunched implementation on Android"

This reverts commit 6f4aca32a6.

* Revert "Fixed LightBox not updating overlay width/height on rotate (#1461)"

This reverts commit 54d2531720.
Guy Carmeli hace 7 años
padre
commit
137f62ff54
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1
    6
      ios/RCCLightBox.m

+ 1
- 6
ios/RCCLightBox.m Ver fichero

@@ -48,7 +48,7 @@ const NSInteger kLightBoxTag = 0x101010;
48 48
                 UIColor *backgroundColor = [RCTConvert UIColor:style[@"backgroundColor"]];
49 49
                 if (backgroundColor != nil)
50 50
                 {
51
-                    self.overlayColorView = [[UIView alloc] init];
51
+                    self.overlayColorView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
52 52
                     self.overlayColorView.backgroundColor = backgroundColor;
53 53
                     self.overlayColorView.alpha = 0;
54 54
                     [self addSubview:self.overlayColorView];
@@ -87,11 +87,6 @@ const NSInteger kLightBoxTag = 0x101010;
87 87
 -(void)layoutSubviews
88 88
 {
89 89
     [super layoutSubviews];
90
-
91
-    self.reactView.frame = self.bounds;
92
-    if (self.overlayColorView != nil) {
93
-        self.overlayColorView.frame = self.bounds;
94
-    }
95 90
     
96 91
     if(!self.yellowBoxRemoved)
97 92
     {