Try Now
More in this section

Forums / Bugs & Issues / Custom Controller with Document Icon Sizes

Custom Controller with Document Icon Sizes

2 posts, 0 answered
  1. Marco
    Marco avatar
    4 posts
    12 Sep 2014
    24 Oct 2014
    Link to this post


    I have a custom controller that has the ability to add 2 or more documents. The issue that I am experiencing is that there is an icon size difference when a user uploads 1 document or 2 or more documents. The document with 1 item has a smaller doc icon and does not display the file size and the document with 2 or more items has a larger one. How can I change the size to be consistently smaller or bigger?


  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    19 Oct 2016
    29 Oct 2014
    Link to this post
    Hello Marco,

    The documents icons are shown using css styles and a background image url and position pointing to the right icon in the document icons image sprite. I guess the small document icon is a result of a smaller element which holds the according css class for the icon (sftxt, sfpdf). I suggest checking the item parents in case the size is passed using percentage or relatively to the parent element and adding a specific class to those items, so you can set them the size you want.
    I hope this information will help you resolve the issue.

    Nikola Zagorchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered