BUG 9604 "En el campo suggestbox aparece una linea horizontal..." SOLVED
- In the field SuggestBox, show horizontal lines, only in IE - Problem solved, now SuggestBox is same for any browser * Available from version 2.0.44
This commit is contained in:
@@ -323,12 +323,12 @@ _b.AutoSuggest.prototype.createList = function(arr)
|
|||||||
//
|
//
|
||||||
var div = _b.DOM.cE("div", {id:this.idAs, className:this.oP.className});
|
var div = _b.DOM.cE("div", {id:this.idAs, className:this.oP.className});
|
||||||
|
|
||||||
var hcorner = _b.DOM.cE("div", {className:"as_corner"});
|
//var hcorner = _b.DOM.cE("div", {className:"as_corner"});
|
||||||
var hbar = _b.DOM.cE("div", {className:"as_bar"});
|
//var hbar = _b.DOM.cE("div", {className:"as_bar"});
|
||||||
var header = _b.DOM.cE("div", {className:"as_header"});
|
//var header = _b.DOM.cE("div", {className:"as_header"});
|
||||||
header.appendChild(hcorner);
|
//header.appendChild(hcorner);
|
||||||
header.appendChild(hbar);
|
//header.appendChild(hbar);
|
||||||
div.appendChild(header);
|
//div.appendChild(header);
|
||||||
|
|
||||||
// create and populate ul
|
// create and populate ul
|
||||||
//
|
//
|
||||||
@@ -391,27 +391,41 @@ _b.AutoSuggest.prototype.createList = function(arr)
|
|||||||
Static_AutosuggestResponseData.results.length = 0;
|
Static_AutosuggestResponseData.results.length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.style.cssText = "zoom: 1; padding-top: 4px;";
|
||||||
|
|
||||||
div.appendChild( ul );
|
div.appendChild(ul);
|
||||||
|
|
||||||
|
//var fcorner = _b.DOM.cE("div", {className:"as_corner"});
|
||||||
var fcorner = _b.DOM.cE("div", {className:"as_corner"});
|
//var fbar = _b.DOM.cE("div", {className:"as_bar"});
|
||||||
var fbar = _b.DOM.cE("div", {className:"as_bar"});
|
//var footer = _b.DOM.cE("div", {className:"as_footer"});
|
||||||
var footer = _b.DOM.cE("div", {className:"as_footer"});
|
//footer.appendChild(fcorner);
|
||||||
footer.appendChild(fcorner);
|
//footer.appendChild(fbar);
|
||||||
footer.appendChild(fbar);
|
//div.appendChild(footer);
|
||||||
div.appendChild(footer);
|
|
||||||
|
|
||||||
// get position of target textfield
|
// get position of target textfield
|
||||||
// position holding div below it
|
// position holding div below it
|
||||||
// set width of holding div to width of field
|
// set width of holding div to width of field
|
||||||
//
|
//
|
||||||
var pos = _b.DOM.getPos(this.fld);
|
|
||||||
|
|
||||||
div.style.left = pos.x + "px";
|
var pos = _b.DOM.getPos(this.fld);
|
||||||
div.style.top = ( pos.y + this.fld.offsetHeight + this.oP.offsety ) + "px";
|
|
||||||
div.style.width = this.fld.offsetWidth + "px";
|
var divPosX = pos.x - 3;
|
||||||
div.style.height = 250;
|
var divPosY = pos.y - 4;
|
||||||
|
var divW = this.fld.offsetWidth;
|
||||||
|
var divH = 250;
|
||||||
|
|
||||||
|
if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) {
|
||||||
|
var divPosX = pos.x - 2;
|
||||||
|
var divPosY = pos.y - 4;
|
||||||
|
var divW = this.fld.offsetWidth + 5;
|
||||||
|
//divH = 250;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.style.left = divPosX + "px";
|
||||||
|
div.style.top = (divPosY + this.fld.offsetHeight + this.oP.offsety) + "px";
|
||||||
|
div.style.width = divW + "px";
|
||||||
|
div.style.height = divH + "px";
|
||||||
|
|
||||||
// set mouseover functions for div
|
// set mouseover functions for div
|
||||||
// when mouse pointer leaves div, set a timeout to remove the list after an interval
|
// when mouse pointer leaves div, set a timeout to remove the list after an interval
|
||||||
// when mouse enters div, kill the timeout so the list won't be removed
|
// when mouse enters div, kill the timeout so the list won't be removed
|
||||||
|
|||||||
Reference in New Issue
Block a user