- Refactors ColumnsHelper class

This commit is contained in:
Vlad
2016-01-08 11:35:30 -05:00
parent dbc0f9b238
commit 42ad7584d4
4 changed files with 27 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ class Image {
}
static function getImageDimensions($element, $column_count) {
$column_width = ColumnsHelper::$columns_width[$column_count];
$column_width = ColumnsHelper::columnWidth($column_count);
$padded_width = StylesHelper::$padding_width * 2;
// resize image if it's wider than the column width
if((int) $element['width'] >= $column_width) {