ソースを参照

There are many Port code, HTS code,Contact,Country code, but the system didn't automatically show the matched opitions when input some characters, it's inconvenient and will take a long time to find a correct option by sliding screen in the search page.(resolve: #14814) 修复因为框架兼容性问题导致的搜索框无法正常显示的问题

Ray Zhang 4 年 前
コミット
b9c8af3977
1 ファイル変更6 行追加4 行削除
  1. 6 4
      common/customUI/commoneditor/CommonEditor.storyboard

+ 6 - 4
common/customUI/commoneditor/CommonEditor.storyboard

@@ -942,7 +942,7 @@
                                 <nil key="highlightedColor"/>
                             </label>
                             <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="O1P-gK-hbP">
-                                <rect key="frame" x="0.0" y="44" width="768" height="980"/>
+                                <rect key="frame" x="0.0" y="71" width="768" height="953"/>
                                 <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                 <prototypes>
                                     <tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="EnumSelectorCell" id="bae-sl-DbK" customClass="EnumSelectorCell">
@@ -974,9 +974,8 @@
                                     <outlet property="delegate" destination="A1a-tK-2BG" id="qCj-ol-VAC"/>
                                 </connections>
                             </tableView>
-                            <searchBar contentMode="redraw" placeholder="KEYWORDS" id="8tc-Zi-o4x">
-                                <rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
-                                <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
+                            <searchBar contentMode="redraw" placeholder="KEYWORDS" translatesAutoresizingMaskIntoConstraints="NO" id="8tc-Zi-o4x">
+                                <rect key="frame" x="0.0" y="20" width="768" height="51"/>
                                 <textInputTraits key="textInputTraits"/>
                                 <connections>
                                     <outlet property="delegate" destination="A1a-tK-2BG" id="HpF-dm-AwJ"/>
@@ -985,8 +984,11 @@
                         </subviews>
                         <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                         <constraints>
+                            <constraint firstItem="8tc-Zi-o4x" firstAttribute="leading" secondItem="U3R-Nq-VNq" secondAttribute="leading" id="5WO-cu-6LF"/>
+                            <constraint firstItem="8tc-Zi-o4x" firstAttribute="top" secondItem="1gV-A8-KPP" secondAttribute="bottom" id="CQl-Ir-ikB"/>
                             <constraint firstItem="O1P-gK-hbP" firstAttribute="top" secondItem="8tc-Zi-o4x" secondAttribute="bottom" id="D7b-Kn-CeP"/>
                             <constraint firstItem="O1P-gK-hbP" firstAttribute="leading" secondItem="U3R-Nq-VNq" secondAttribute="leading" id="EfY-Qd-pqJ"/>
+                            <constraint firstAttribute="trailing" secondItem="8tc-Zi-o4x" secondAttribute="trailing" id="OdN-xw-Ama"/>
                             <constraint firstAttribute="trailing" secondItem="O1P-gK-hbP" secondAttribute="trailing" id="VOJ-oF-WaG"/>
                             <constraint firstItem="obC-fO-OxK" firstAttribute="top" secondItem="O1P-gK-hbP" secondAttribute="bottom" id="vXu-cU-n6z"/>
                         </constraints>