aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default/profile/js.php')
-rw-r--r--mod/profile/views/default/profile/js.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/js.php b/mod/profile/views/default/profile/js.php
new file mode 100644
index 000000000..5a08a90bd
--- /dev/null
+++ b/mod/profile/views/default/profile/js.php
@@ -0,0 +1,9 @@
+
+// force the first column to at least be as large as the profile box in cols 2 and 3
+// we also want to run before the widget init happens so priority is < 500
+elgg.register_hook_handler('init', 'system', function() {
+ // only do this on the profile page's widget canvas.
+ if ($('.profile').length) {
+ $('#elgg-widget-col-1').css('min-height', $('.profile').outerHeight(true) + 1);
+ }
+}, 400);