Parcourir la source

1.修改UWA PDF位置偏移。

Pen Li il y a 7 ans
Parent
commit
db433edb56

+ 5 - 5
RedAnt ERP Mobile/common/Functions/PDF+Web/RAPDFViewController.m

@@ -46,13 +46,13 @@
     //    ref.hidden = true;
     [ref addTarget:self action:@selector(changeCell) forControlEvents:UIControlEventValueChanged];
     [self.webView.scrollView addSubview:ref];
-    
-    
     self.webView.dataDetectorTypes=UIDataDetectorTypeAll;
     
-    
-  
-    
+    if (@available(iOS 11, *)) {
+        self.webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
+    } else {
+        self.automaticallyAdjustsScrollViewInsets = NO;
+    }
 
    // self.btnsave.tintColor = UIColorFromRGB(0x996633);
     

+ 5 - 5
RedAnt ERP Mobile/iSales-NPD/Base.lproj/Main.storyboard

@@ -2058,8 +2058,8 @@
                         <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                         <subviews>
-                            <webView contentMode="scaleToFill" scalesPageToFit="YES" allowsInlineMediaPlayback="NO" mediaPlaybackRequiresUserAction="NO" mediaPlaybackAllowsAirPlay="NO" id="PEF-0b-rxG">
-                                <rect key="frame" x="0.0" y="44" width="768" height="980"/>
+                            <webView contentMode="scaleToFill" misplaced="YES" scalesPageToFit="YES" allowsInlineMediaPlayback="NO" mediaPlaybackRequiresUserAction="NO" mediaPlaybackAllowsAirPlay="NO" id="PEF-0b-rxG">
+                                <rect key="frame" x="0.0" y="64" width="768" height="980"/>
                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                 <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                 <dataDetectorType key="dataDetectorTypes"/>
@@ -6579,7 +6579,7 @@ Email: redantsupport@united-us.net</string>
                                     <barButtonItem style="plain" systemItem="flexibleSpace" id="KVd-zF-Tl0"/>
                                     <barButtonItem style="plain" id="joL-Py-zMr">
                                         <searchBar key="customView" contentMode="redraw" searchBarStyle="minimal" placeholder="Name, Address, Phone etc" id="37s-Zo-qJG">
-                                            <rect key="frame" x="297" y="0.0" width="364" height="44"/>
+                                            <rect key="frame" x="305" y="0.0" width="364" height="44"/>
                                             <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
                                             <textInputTraits key="textInputTraits"/>
                                             <connections>
@@ -9825,7 +9825,7 @@ Email: redantsupport@united-us.net</string>
         <image name="check_0_24" width="24" height="24"/>
         <image name="check_1_24" width="24" height="24"/>
         <image name="checkbox" width="16" height="16"/>
-        <image name="close" width="40" height="40"/>
+        <image name="close" width="32" height="32"/>
         <image name="contact" width="72" height="72"/>
         <image name="continue" width="130" height="30"/>
         <image name="filter" width="32" height="32"/>
@@ -9839,7 +9839,7 @@ Email: redantsupport@united-us.net</string>
         <image name="mark_wish_32" width="32" height="32"/>
         <image name="menu_open" width="36" height="36"/>
         <image name="more_color_larger" width="32" height="32"/>
-        <image name="newcustomer" width="40" height="40"/>
+        <image name="newcustomer" width="32" height="32"/>
         <image name="neworder" width="40" height="40"/>
         <image name="notifyMe" width="124" height="39"/>
         <image name="npd_logo" width="110" height="13"/>