Revision
2826
Author
cimorrison
Date
2014-03-09 10:03:30 +0000 (Sun, 09 Mar 2014)

Log Message

Fixed a problem in the day and week views with resizable bookings not filling the whole time period when $clipped is set to FALSE.    See SF Support Requests #503.

Modified Paths

Diff

Modified: mrbs/trunk/web/js/resizable.js.php (2825 => 2826)


--- mrbs/trunk/web/js/resizable.js.php	2014-03-08 10:02:25 UTC (rev 2825)
+++ mrbs/trunk/web/js/resizable.js.php	2014-03-09 10:03:30 UTC (rev 2826)
@@ -1215,8 +1215,13 @@
                         .css('max-height', 'none')
                         .css('min-height', '<?php echo $main_cell_height ?>px')
                         .addClass('clone')
-                        .width(divBooking.outerWidth())
-                        .height(divBooking.outerHeight());
+                        <?php
+                        // We use the inner dimensions of the parent rather than the outer dimensions
+                        // of this element in case this element doesn't fill the whole cell - which
+                        // for some reason it doesn't always when clipping is turned off in MRBS.
+                        ?>
+                        .width(divBooking.parent().innerWidth())
+                        .height(divBooking.parent().innerHeight());
                 if (handles)
                 {
                   divClone.resizable({handles: handles,