From acc849f41fd05cfa38512a4ad5167ab8d52c905a Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Sat, 27 Aug 2011 19:13:47 -0700 Subject: Fixes #3561. Only adding the static profile block height to the widget canvas if on the profile page. --- mod/profile/views/default/profile/js.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/profile') diff --git a/mod/profile/views/default/profile/js.php b/mod/profile/views/default/profile/js.php index edf68543c..16dec59df 100644 --- a/mod/profile/views/default/profile/js.php +++ b/mod/profile/views/default/profile/js.php @@ -1,3 +1,6 @@ elgg.register_hook_handler('init', 'system', function() { - $('#elgg-widget-col-1').css('min-height', $('.profile').outerHeight(true) + 1); + // only do this on the profile page's widget canvas. + if ($('.profile').length) { + $('#elgg-widget-col-1').css('min-height', $('.profile').outerHeight(true) + 1); + } }); \ No newline at end of file -- cgit v1.2.3