Skip to content
Snippets Groups Projects
Commit 1c40011d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '156-position-of-the-magnifier' into 'master'

search button is aligned properly in firefox

Closes #156

See merge request !80
parents 2e8c2752 c848fcdb
No related branches found
No related tags found
1 merge request!80search button is aligned properly in firefox
...@@ -81,15 +81,19 @@ AbstractPanel.prototype._initializeGui = function() { ...@@ -81,15 +81,19 @@ AbstractPanel.prototype._initializeGui = function() {
this.setControlElement(PanelControlElementType.SEARCH_LABEL, searchLabel); this.setControlElement(PanelControlElementType.SEARCH_LABEL, searchLabel);
var searchInputDiv = Functions.createElement({ var searchInputDiv = Functions.createElement({
type : "div", type : "table",
style : "display:table"
}); });
searchQueryDiv.appendChild(searchInputDiv); searchQueryDiv.appendChild(searchInputDiv);
var searchInputRow = Functions.createElement({
type : "tr",
});
searchInputDiv.appendChild(searchInputRow);
var searchInputCell = Functions.createElement({ var searchInputCell = Functions.createElement({
type : "div", type : "td",
style : "display:table-cell"
}); });
searchInputDiv.appendChild(searchInputCell); searchInputRow.appendChild(searchInputCell);
var searchInput = Functions.createElement({ var searchInput = Functions.createElement({
type : "input", type : "input",
...@@ -100,14 +104,12 @@ AbstractPanel.prototype._initializeGui = function() { ...@@ -100,14 +104,12 @@ AbstractPanel.prototype._initializeGui = function() {
this.setControlElement(PanelControlElementType.SEARCH_INPUT, searchInput); this.setControlElement(PanelControlElementType.SEARCH_INPUT, searchInput);
var searchButtonCell = Functions.createElement({ var searchButtonCell = Functions.createElement({
type : "div", type : "td",
style : "display:table-cell"
}); });
searchInputDiv.appendChild(searchButtonCell); searchInputRow.appendChild(searchButtonCell);
var searchButton = Functions.createElement({ var searchButton = Functions.createElement({
type : "a", type : "a",
className : "searchButton",
content : '<img src="resources/images/icons/search.png"/>' content : '<img src="resources/images/icons/search.png"/>'
}); });
searchButton.href = "#"; searchButton.href = "#";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment