? 1062360-homebox-js-not-working-rev2.patch
? 1062360-homebox-js-not-working.patch
? Homebox-7--2.kpf
Index: homebox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/homebox/homebox.module,v
retrieving revision 1.2.2.62.2.7
diff -u -p -r1.2.2.62.2.7 homebox.module
--- homebox.module	15 Feb 2011 15:33:58 -0000	1.2.2.62.2.7
+++ homebox.module	15 Feb 2011 17:32:48 -0000
@@ -408,6 +408,14 @@ function homebox_build($page) {
     $add_links = NULL;
     $save_form = NULL;
   }
+  
+  // If custom widths aren't set, make each width a percentage of the total available.
+  if (!count($page->settings['widths'])) {
+    $num_regions = count($regions);
+    for ($i = 1; $i <= $num_regions; $i++) {
+      $page->settings['widths'][$i] = round(100 / $num_regions, 0, PHP_ROUND_HALF_DOWN);
+    }
+  }
 
   // Build output
   $output = theme('homebox', array('regions' => $regions, 'available_blocks' => $allowed_blocks, 'column_count' => $column_count, 'page' => $page, 'add_links' => $add_links, 'save_form' => $save_form));
