Skip to content

Commit

Permalink
Merge pull request #192 from BPkazemi/rendering-bug
Browse files Browse the repository at this point in the history
Rendering bug
  • Loading branch information
gfranko committed Jul 17, 2013
2 parents 6e8808b + d817680 commit 3674b67
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/javascripts/jquery.selectBoxIt.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,13 +708,17 @@

}

self.dropdownContainer.addClass('selectboxit-rendering');

// Dynamically adds the `max-width` and `line-height` CSS styles of the dropdown list text element
self.dropdownText.css({

"max-width": self.dropdownContainer.width() - (self.downArrowContainer.outerWidth(true) + self.dropdownImage.outerWidth(true))
"max-width": self.dropdownContainer.outerWidth(true) - (self.downArrowContainer.outerWidth(true) + self.dropdownImage.outerWidth(true))

});

self.dropdownContainer.removeClass('selectboxit-rendering');

if($.type(listSize) === "number") {

// Stores the new `max-height` for later
Expand Down
6 changes: 5 additions & 1 deletion src/javascripts/jquery.selectBoxIt.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,13 +708,17 @@

}

self.dropdownContainer.addClass('selectboxit-rendering');

// Dynamically adds the `max-width` and `line-height` CSS styles of the dropdown list text element
self.dropdownText.css({

"max-width": self.dropdownContainer.width() - (self.downArrowContainer.outerWidth(true) + self.dropdownImage.outerWidth(true))
"max-width": self.dropdownContainer - (self.downArrowContainer + self.dropdownImage)

});

self.dropdownContainer.removeClass('selectboxit-rendering');

if($.type(listSize) === "number") {

// Stores the new `max-height` for later
Expand Down
Loading

0 comments on commit 3674b67

Please sign in to comment.