lib/ProMotion/web/web_screen_module.rb in ProMotion-2.0.0.rc3 vs lib/ProMotion/web/web_screen_module.rb in ProMotion-2.0.0.rc4
- old
+ new
@@ -19,13 +19,13 @@
self.detector_types = map_detector_symbol(self.detector_types)
end
self.webview ||= add UIWebView.new, {
frame: CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height),
- resize: [ :width, :height ],
delegate: self,
data_detector_types: self.detector_types
}
+ self.webview.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight
self.webview.scalesPageToFit = self.scale_to_fit
self.webview.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal
set_initial_content
end