diff --git a/components/editorControls/imagecropper/Resources.resx b/components/editorControls/imagecropper/Resources.resx index be341a675f..2d4ad6fb9f 100644 --- a/components/editorControls/imagecropper/Resources.resx +++ b/components/editorControls/imagecropper/Resources.resx @@ -413,8 +413,8 @@ $.Jcrop = function(obj,opt) drawBorders: true, dragEdges: true, - boxWidth: 0, - boxHeight: 0, + boxWidth: (jQuery(window).width()*0.85), + boxHeight: (jQuery(window).height()*0.85), boundary: 8, animationDelay: 20, diff --git a/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs b/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs index 96518a9272..c263261181 100644 --- a/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs +++ b/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs @@ -224,14 +224,17 @@ namespace umbraco.controls ddlThumbnails.Items.Add(li); } - Page.ClientScript.RegisterStartupScript(this.GetType(), "thumbnailsDropDown", @" + Page.ClientScript.RegisterStartupScript(this.GetType(), "thumbnailsDropDown", @" function refreshDropDowns() { - jQuery('#" + ddlIcons.ClientID + @"').msDropDown({ showIcon: true, style: 'width:250px;' }); + if (jQuery('#" + ddlIcons.ClientID + @" option').length <= 100) + jQuery('#" + ddlIcons.ClientID + @"').msDropDown({ showIcon: true, style: 'width:250px;' }); + else { + jQuery('#" + ddlIcons.ClientID + @"').before('
For performance reasons, icons will not be displayed when there are more than 100 items in the dropdown.