4,554
edits
No edit summary |
No edit summary |
||
Line 152: | Line 152: | ||
// Calculate the adjustment | // Calculate the adjustment | ||
var adjustment = originalListWidth - wrapperWidth; | var adjustment = fullWidth - originalListWidth - wrapperWidth; | ||
// Apply the new width and margin | // Apply the new width and margin | ||
list.width(originalListWidth - wrapperWidth).css('margin-right', wrapperWidth + 'px'); | list.width(originalListWidth - wrapperWidth + adjustment).css('margin-right', wrapperWidth + 'px'); | ||
listList.width(originalListListWidth - wrapperWidth).css('margin-right', wrapperWidth + 'px'); | listList.width(originalListListWidth - wrapperWidth + adjustment).css('margin-right', wrapperWidth + 'px'); | ||
// Adjust width of filtered-list-items in #list | // Adjust width of filtered-list-items in #list |