You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm using the anchor tag with padding to determine the height of the select box. as currently coded, the plugin pulls the height from $containerDiv before there is any text in it. this leads to a height which consists of the top+bottom padding, and leads to the "top" being set incorrectly when positioning SSContainerDivWrapper.
i switched the order of the following two statements to get it to work: essentially putting something in the selectTxt before taking the height of the surrounding div.
//check if a value is selected
if (currentIndex != -1){
navigateList(currentIndex);
} else {
//set placeholder text
$containerDivText.text(opts.defaultText);
}
//get heights of new elements for use later
var newUlHeight = $newUl.height(),
containerHeight = $containerDiv.height(),
newLiLength = $newLi.length;
cheerio
The text was updated successfully, but these errors were encountered:
i'm using the anchor tag with padding to determine the height of the select box. as currently coded, the plugin pulls the height from $containerDiv before there is any text in it. this leads to a height which consists of the top+bottom padding, and leads to the "top" being set incorrectly when positioning SSContainerDivWrapper.
i switched the order of the following two statements to get it to work: essentially putting something in the selectTxt before taking the height of the surrounding div.
cheerio
The text was updated successfully, but these errors were encountered: