Defect #28204
closedToo large avatar breaks gantt when assignee is a group
0%
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
Updated by Go MAEDA almost 7 years ago
- Related to Defect #26699: Anonymous user should have their icon added
Updated by Go MAEDA almost 7 years ago
The behavior of image_tag has been changed by this commit:
Allow to pass a string value to size option in `image_tag` and `video… · rails/rails@ab5f119
Updated by Go MAEDA almost 7 years ago
- File test_size_option_for_avatar_should_accept_integer_value.diff test_size_option_for_avatar_should_accept_integer_value.diff added
- File size_option_for_avatar_should_accept_integer_value.diff size_option_for_avatar_should_accept_integer_value.diff added
Patches for this issue.
Updated by Go MAEDA almost 7 years ago
- Related to Defect #28208: Anonymous icon is wrongly displayed when assignee is a group added
Updated by Go MAEDA almost 7 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix to 3.4-stable and 3.3-stable branch.
Mischa, thank you for reviewing the patch.