Google map search bar resizes in GWT

I have a gwt application that uses map api for mapWidget. I added integrated map search with setGoogleBarEnabled (true). It works fine, but the input field is 6 pixels. How can I resize it? thanks balint

+3
source share
1 answer

By default, the Google search bar should be 15 pixels high, as far as I can understand, by checking the Google Maps DOM with the search bar turned on.

This is what the search bar in the DOM looks like:

<div id=":0:formId" class="gels-form-div">
   <img id=":0:logoId" class="gels-logo" src="http://www.google.com/uds/modules/elements/localsearch/logo_66x22.png">
   <input id=":0:inputId" class="gels-input" type="text" name="search" title="search" value="search the map" style="width: 153px; ">
   <input id=":0:buttonId" class="gels-button" type="submit" value="Search" title="search">
</div>

Make sure your application does not override class height gels-input. If this does not help, you can redefine the height yourself:

input.gels-input {
    height: 15px;
}
+2

Source: https://habr.com/ru/post/1738623/


All Articles