Github user shazron commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-inappbrowser/pull/210#discussion_r122649041
  
    --- Diff: src/ios/CDVInAppBrowser.m ---
    @@ -539,115 +545,212 @@ -(void)dealloc {
     - (void)createViews
     {
         // We create the views in code for primarily for ease of upgrades and 
not requiring an external .xib to be included
    +    UIBarButtonItem* flexibleSpaceButton = [[UIBarButtonItem alloc] 
initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil 
action:nil];
    +    UIBarButtonItem* fixedSpaceButton = [[UIBarButtonItem alloc] 
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil 
action:nil];
    +    fixedSpaceButton.width = 20;
     
    -    CGRect webViewBounds = self.view.bounds;
    -    BOOL toolbarIsAtBottom = ![_browserOptions.toolbarposition 
isEqualToString:kInAppBrowserToolbarBarPositionTop];
    -    webViewBounds.size.height -= _browserOptions.location ? FOOTER_HEIGHT 
: TOOLBAR_HEIGHT;
    -    self.webView = [[UIWebView alloc] initWithFrame:webViewBounds];
    +    self.webView = [self buildWebView];
    +    self.spinner = [self buildSpinner];
    +    self.toolbar = [self buildToolbar];
    +
    +    self.addressLabel = [self buildAddressLabel];
    +    self.addressBar = [self buildAddressBar:self.addressLabel];
     
    -    self.webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | 
UIViewAutoresizingFlexibleHeight);
    +    self.closeButton = [self buildCloseButton];
    +    self.forwardButton = [self buildForwardButton];
    +    self.backButton = [self buildBackButton];
    +
    +    [self.toolbar setItems:@[self.closeButton, flexibleSpaceButton, 
self.backButton, fixedSpaceButton, self.forwardButton]];
    +
    +    self.view.backgroundColor = [UIColor whiteColor];
    +
    +    if (IsAtLeastiOSVersion(@"7.0")) {
    --- End diff --
    
    1. 
https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#engines-and-engine
    2. 
https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html#specifying-cordova-dependencies


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to