set the height so colorbox can set its size correctly

This commit is contained in:
friendica 2013-12-23 20:04:00 -08:00
parent 4e3a2c5f28
commit 1c5fe5a1ac
2 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
function dirdetails(hash) {
$.get('dirprofile' + '?f=&hash=' + hash, function( data ) {
$.colorbox({ maxWidth: '75%', maxHeight: '75%', html: data });
$.colorbox.resize();
$.colorbox({ html: data });
});
}

View File

@ -3,7 +3,7 @@
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$id}}" >
<div class="contact-photo" id="directory-photo-{{$id}}" >
<a href="{{$profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$id}}" ><img class="directory-photo-img" src="{{$photo}}" alt="{{$alttext}}" title="{{$alttext}}" /></a>
<a href="{{$profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$id}}" ><img class="directory-photo-img" height="175" width="175" src="{{$photo}}" alt="{{$alttext}}" title="{{$alttext}}" /></a>
</div>
</div>