Actions
Defect #28204
closedToo large avatar breaks gantt when assignee is a group
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
A 128px wide avatar icon breaks gantt view when the assignee of an issue is a group and "Use Gravatar user icons" setting is enabled.
The problem is introduced in Redmine 3.3.6 and 3.4.4 by #26699. The cause is that the HTML doesn't include "width" and "height" option because image_tag in Rails 4 doesn't accept an integer value for ":size" option (Rails 5 accepts both integer and string value, so the current trunk is not affected).
Redmine 3.4 (img element doesn't have "width" and "height" attributes):
<img alt="" title="Assignee: A Team" class="gravatar icon-gravatar" default="default" src="/images/anonymous.png?1518850381">
The current trunk (img element has "width" and "height" attributes):
<img alt="" title="Assignee: A Team" class="gravatar icon-gravatar" default="default" src="/images/anonymous.png?1517405352" width="13" height="13">
Files
Related issues
Actions