# HG changeset patch # User Dan # Date 1239638746 14400 # Node ID b8db9a7946fc5062a7fda837c1c44d933fcee663 # Parent e7c6f1aa7b6a7f4944f1f103b930cc5e93025c3e Theme selector: controls height now (limits box to height of screen minus a few px of padding) if there are lots of themes diff -r e7c6f1aa7b6a -r b8db9a7946fc includes/clientside/static/ajax.js --- a/includes/clientside/static/ajax.js Sun Apr 12 19:50:58 2009 -0400 +++ b/includes/clientside/static/ajax.js Mon Apr 13 12:05:46 2009 -0400 @@ -760,7 +760,7 @@ $.get(stdAjaxPrefix + '&_mode=theme_list', {}, function(data, status) { $('#theme-selector-inner .theme-selector-spinner').fadeOut(650); - $('#theme-selector-body').animate({ width: 708 }, 600, function() + $('#theme-selector-body').animate({ width: 728 }, 600, function() { // avoiding jQuery's fade functions because they insist on toggling display as well if ( !aclDisableTransitionFX ) @@ -771,7 +771,12 @@ for ( var i = 0; i < data.length; i++ ) { var bgi = data[i].have_thumb ? cdnPath + '/themes/' + data[i].theme_id + '/preview.png' : cdnPath + '/images/themepreview.png'; - $('#theme-selector-inner > ul').append('
  • '); + var maxheight = getHeight() - 325; + $('#theme-selector-inner > ul') + .css('clip', 'rect(0px, auto, auto, 0px)') + .css('overflow', 'auto') + .css('max-height', maxheight) + .append('
  • '); $('#theme-selector-inner li#theme_' + i + ' > a') .css('background-image', 'url(' + bgi + ')') .attr('enano:theme_id', data[i].theme_id);