Fix some misalignment for link_to widget, happens in FF

This commit is contained in:
Hadi Nategh 2016-04-14 13:48:12 +00:00
parent 0c438366d7
commit 7065f6fd2e
2 changed files with 10 additions and 12 deletions

View File

@ -135,6 +135,12 @@ var et2_link_to = (function(){ "use strict"; return et2_inputWidget.extend(
// Filemanager link popup
this.filemanager_button = $j(document.createElement("div")).css({display:'inline-block'}).appendTo(this.div);
// Need a div for link-to widget
this.link_div = $j(document.createElement("div"))
.addClass('div_link')
// Leave room for link button
.appendTo(this.div);
// One common link button
this.link_button = $j(document.createElement("button"))
.text(this.egw().lang(this.options.link_label))
@ -146,12 +152,6 @@ var et2_link_to = (function(){ "use strict"; return et2_inputWidget.extend(
this.status_span = $j(document.createElement("span"))
.appendTo(this.div).addClass("status").hide();
// Need a div for link-to widget
this.link_div = $j(document.createElement("div"))
.addClass('div_link')
// Leave room for link button
.appendTo(this.div);
this.setDOMNode(this.div[0]);
},

View File

@ -730,7 +730,7 @@ div.et2_link_entry input.ui-autocomplete-input {
border-radius: 3px;
width: 40%;
}
.et2_link_to.et2_toolbar .div_link {width:85%;vertical-align: top;}
.et2_link_to.et2_toolbar .div_link {width:80%;vertical-align: top;}
.et2_link_to.et2_toolbar .div_link select {margin-right: 4px;}
.et2_link_to button {
display: inline;
@ -740,8 +740,7 @@ div.et2_link_entry input.ui-autocomplete-input {
background-position: 3px center;
width: 22px;
height: 22px;
display: block;
float: right;
display: inline-block;
}
.et2_link_to span.status.success {
background-image: url(images/tick.png);
@ -799,7 +798,6 @@ div.et2_link_entry input.ui-autocomplete-input {
vertical-align: bottom;
padding-right: 2px;
}
.et2_link_to.et2_toolbar button.link {float:right;}
.et2_link_to.et2_toolbar span.et2_file_span { padding-right: 0;}