1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Contacts: Set height of contact photo.

This commit is contained in:
Thomas Tanghus 2012-12-11 14:42:29 +01:00
parent 3248ae6c09
commit 712b75c73b

View File

@ -957,7 +957,7 @@ OC.Contacts = OC.Contacts || {};
this.photo = new Image(); this.photo = new Image();
$(this.photo).load(function () { $(this.photo).load(function () {
$(this).addClass('contactphoto'); $(this).addClass('contactphoto');
self.$photowrapper.css('width', $(this).get(0).width + 10); self.$photowrapper.css({width: $(this).get(0).width + 10, height: $(this).get(0).height + 10});
self.$photowrapper.removeClass('loading').removeClass('wait'); self.$photowrapper.removeClass('loading').removeClass('wait');
$(this).insertAfter($phototools).fadeIn(); $(this).insertAfter($phototools).fadeIn();
}).error(function () { }).error(function () {