mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Merge pull request #1083 from nlegoff/fix-phras-122
[3.8] Fix PHRAS-122 Thumbnails are not centered
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
"width":original_w,
|
||||
"height":original_h,
|
||||
"top":0,
|
||||
"left": 0
|
||||
} %}
|
||||
{% elseif record_type == 'FLEXPAPER' %}
|
||||
{% set original_w = 800 %}
|
||||
@@ -20,6 +21,7 @@
|
||||
"width":800,
|
||||
"height":600,
|
||||
"top":0,
|
||||
"left": 0
|
||||
} %}
|
||||
{% else %}
|
||||
{% set original_h = thumbnail.get_height() > 0 ? thumbnail.get_height() : 120 %}
|
||||
|
||||
Reference in New Issue
Block a user