Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Fixing issue #59 #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion css/jquery.reject.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

#jr_inner ul li {
cursor: pointer;
float: left;
display: inline-block;
width: 120px;
height: 122px;
margin: 0 10px 10px 10px;
Expand Down Expand Up @@ -112,3 +112,7 @@
padding: 10px 0 0 0;
margin: 0;
}

#browserList {
text-align: center;
}
8 changes: 4 additions & 4 deletions js/jquery.reject.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ $.reject = function(options) {

var displayNum = 0;
if (opts.browserShow) {
html += '<ul>';
html += '<ul id="browserList">';

// Generate the browsers to display
for (var x in opts.display) {
Expand All @@ -240,7 +240,7 @@ $.reject = function(options) {
var url = info.url || '#'; // URL to link text/icon to

// Generate HTML for this browser option
html += '<li id="jr_'+browser+'"><div class="jr_icon"></div>'+
html += '<li id="jr_'+browser+'" class="browser"><div class="jr_icon"></div>'+
'<div><a href="'+url+'">'+(info.text || 'Unknown')+'</a>'+
'</div></li>';

Expand Down Expand Up @@ -358,9 +358,9 @@ $.reject = function(options) {
// Wrapper for inner centered content (div)
element.find('#jr_inner').css({
minWidth: displayNum*100,
maxWidth: displayNum*140,
maxWidth: displayNum === 1 ? 300 : displayNum*140,
// min/maxWidth not supported by IE
width: $.layout.name == 'trident' ? displayNum*155 : 'auto'
width: $.layout.name == 'trident' ? (displayNum === 1 ? 300 : displayNum*155 ) : 'auto'
});

element.find('#jr_inner li').css({ // Browser list items (li)
Expand Down