Commit 8cb98b40 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

search field style fixed

parent af1791e5
......@@ -242,6 +242,9 @@ Functions.createElement = function(params) {
if (params.content !== null && params.content !== undefined) {
result.innerHTML = params.content;
}
if (params.style !== null && params.style !== undefined) {
result.style.cssText = params.style;
}
return result;
};
......
......@@ -72,12 +72,20 @@ AbstractPanel.prototype._initializeGui = function(){
searchQueryDiv.appendChild(searchLabel);
this.setControlElement(PanelControlElementType.SEARCH_LABEL, searchLabel);
var searchInputDiv = Functions.createElement({type:"div",style: "display:table"});
searchQueryDiv.appendChild(searchInputDiv);
var searchInputCell = Functions.createElement({type:"div",style: "display:table-cell"});
searchInputDiv.appendChild(searchInputCell);
var searchInput = Functions.createElement({type:"input", name:"searchInput",className: "input-field typeahead" });
searchQueryDiv.appendChild(searchInput);
searchInputCell.appendChild(searchInput);
this.setControlElement(PanelControlElementType.SEARCH_INPUT, searchInput);
var searchButtonCell = Functions.createElement({type:"div",style: "display:table-cell"});
searchInputDiv.appendChild(searchButtonCell);
var searchButton = Functions.createElement({type:"a", className:"searchButton",content:'<img src="resources/images/icons/search.png"/>'});
searchQueryDiv.appendChild(searchButton);
searchButtonCell.appendChild(searchButton);
this.setControlElement(PanelControlElementType.SEARCH_BUTTON, searchButton);
var searchResultsDiv = Functions.createElement({type:"div", name:"searchResults", className:"tabbable boxed parentTabs" });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment