Commit 0c6f33f581833bbece34bb889dc3c0d3507dcea2

Authored by conradverm
1 parent 2f9a51e9

KTS-2891

"Search widget is too big as it is invisible when the screen resolution is low"
Fixed.

Committed By: Conrad Vermeulen
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8050 c91229c3-7414-0410-bfa2-8a42b809f60b
resources/js/search2widget.js
... ... @@ -176,7 +176,7 @@ function createSearchBar(div, suffix)
176 176 value: quickQuery,
177 177 selectOnFocus:true,
178 178 id:'txtSearchBar' + suffix,
179   - width: 110
  179 + width: (suffix == 1)?180:110
180 180 }), button);
181 181  
182 182 var map = new Ext.KeyMap("txtSearchBar" + suffix,
... ... @@ -190,7 +190,7 @@ function createSearchBar(div, suffix)
190 190 var el = Ext.get(div);
191 191 if (suffix == 1)
192 192 {
193   - el.applyStyles('position:relative; top: -3px');
  193 + el.applyStyles('position:relative; top: -15px; margin-right: 15px');
194 194 }
195 195 else
196 196 {
... ...
templates/kt3/standard_page.smarty
... ... @@ -158,7 +158,7 @@
158 158 <input type=hidden name="cbQuickGeneral" id="cbQuickGeneral" value="1"></form>
159 159 </div>
160 160  
161   - <div id="newSearchQuery"/>
  161 +
162 162  
163 163  
164 164  
... ... @@ -198,6 +198,7 @@
198 198 {if ($page->breadcrumbDetails !== false)}
199 199 <span class="additional">({$page->breadcrumbDetails|sanitize})</span>
200 200 {/if}
  201 + <div id="newSearchQuery" style="float: right; "/>
201 202 </div>
202 203 {/if}
203 204 </div>
... ...