Viewing 6 replies - 1 through 6 (of 6 total)
  • Same problem! disappointing because I could really use this plugin

    Same here. The plugin is fantastic, but I don’t understand how to fix this problem.

    The problem is not in the plugin but in the theme. I made some tests, the problem happens with the theme twentythirteen but not with twentytwelve or twentyfourtheen.

    It seems to be using the images that wordpress generates when you upload media. Try going to settings > media and adjusting the medium size thumbnail settings the max width and/or height to match your tile size. It worked for me.

    Note: You may have to regenerate thumbnails afterwards. A plugin like Force Regenerate Thumbnails will do the trick

    I have this problem as well. Indeed I am using twentythirteen.

    I noticed that the image is always exactly 20px bigger than the colored box.

    So I checked the code and found something odd in post-tiles.php
    On line 403 and 410, I found these lines of code:

    $posttiles_width = $posttiles_li_width - 20;
    $posttiles_height = $posttiles_li_height - 20;

    It’s fixed when I removed the -20 on both lines. Why -20 ?

    Plugin Author ethanhackett

    (@ethanhackett)

    It’s been a while since I wrote Post Tiles but I think it had to do with the 10px padding in the list items. So the images needed to be +20 pixels width/height. I think it has to do with the adoption of box-sizing in css resets in themes.

    https://stackoverflow.com/questions/4698054/css-does-the-width-include-the-padding

    Some themes css include the padding in the width where others add extra width. I probably should add box-sizing to the plugin. But that might fix it in the mean time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘image is bigger than colored box?’ is closed to new replies.