100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
iOS console : screen size
William Balcaen34f349f490aa
diff --git a/console/iOS/console/ORViewController.swift b/console/iOS/console/ORViewController.swiftindex 83f059c5d..70c1af719 100644--- a/console/iOS/console/ORViewController.swift+++ b/console/iOS/console/ORViewController.swift@@ -170,8 +170,9 @@ class ORViewcontroller : UIViewController, URLSessionDelegate, WKScriptMessageHauserController.addUserScript(userScript)webCfg?.userContentController = userController;-- myWebView = WKWebView(frame: view.frame, configuration: webCfg!)+ let sbHeight = UIApplication.shared.statusBarFrame.height+ let webFrame = CGRect(x : 0,y : sbHeight,width : view.frame.size.width,height : view.frame.size.height - sbHeight)+ myWebView = WKWebView(frame: webFrame, configuration: webCfg!)myWebView?.uiDelegate = self;myWebView?.navigationDelegate = self;view.addSubview(myWebView!)