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

Fixing bug with #jr_inner display when using browserShow: false #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
13 changes: 8 additions & 5 deletions js/jquery.reject.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,16 @@ $.reject = function(options) {
left: scroll[0]
});

// Wrapper for inner centered content (div)
element.find('#jr_inner').css({
// If browserShow is FALSE, use default CSS values for #jr_inner
if(opts.browserShow){
// Wrapper for inner centered content (div)
element.find('#jr_inner').css({
minWidth: displayNum*100,
maxWidth: displayNum*140,
// min/maxWidth not supported by IE
width: $.layout.name == 'trident' ? displayNum*155 : 'auto'
});
// min/maxWidth not supported by IE
width: $.layout.name == 'trident' ? displayNum*155 : 'auto'
});
}

element.find('#jr_inner li').css({ // Browser list items (li)
background: 'transparent url("'+opts.imagePath+'background_browser.gif") '+
Expand Down