mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15769] Set avatar image to default max avatar size when creating
PHPBB3-15769
This commit is contained in:
parent
d39cb74c5d
commit
2bac1c82db
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@
|
||||||
// Ensure we have an img for the cropping
|
// Ensure we have an img for the cropping
|
||||||
if (this.$box.children('img').length === 0) {
|
if (this.$box.children('img').length === 0) {
|
||||||
const $avatarImg = $('<img src="" alt="">');
|
const $avatarImg = $('<img src="" alt="">');
|
||||||
|
$avatarImg.setAttribute('width', phpbb.avatars.$data.data().maxWidth);
|
||||||
|
$avatarImg.setAttribute('height', phpbb.avatars.$data.data().maxHeight);
|
||||||
$avatarImg.addClass('avatar');
|
$avatarImg.addClass('avatar');
|
||||||
this.image = $avatarImg;
|
this.image = $avatarImg;
|
||||||
this.$box.prepend($avatarImg);
|
this.$box.prepend($avatarImg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue