javascript - white space appear after call phonegap camera function -


in app, everytime when call camera ( either take picture or scan barcode), there white space added bottom(tested on ios 7). can grow how many times used camera. looks same height of status bar.

the camera using native sdk, nothing else in code.

camerahelper.prototype.takecameraimage = function(callback){ console.log("takecameraimage");  navigator.camera.getpicture(onsuccess, onfail, {    quality: 49,                                                      destinationtype: camera.destinationtype.file_uri,                                                     sourcetype: navigator.camera.picturesourcetype.camera,                                                     correctorientation: true,                                                     targetwidth: 266,                                                     targetheight: 266                                                 });  function onsuccess(imageuri) {     callback({imageuri: imageuri}); } function onfail(message) {     callback({message: message}); }  }; 

what's possible reason it?

enter image description here

try one, put code in mainviewcontroller.m class

- (void)viewdidlayoutsubviews{      if ([self respondstoselector:@selector(toplayoutguide)]) // ios 7 or above     {         cgfloat top = self.toplayoutguide.length;         if(self.webview.frame.origin.y == 0){             // want once, or if view has somehow been "restored" other code.             self.webview.frame = cgrectmake(self.webview.frame.origin.x, self.webview.frame.origin.y + top, self.webview.frame.size.width, self.webview.frame.size.height - top);         }     } } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -