diff options
-rw-r--r-- | timelinejs.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/timelinejs.module b/timelinejs.module index 76a579c..5cc9d55 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -215,6 +215,15 @@ function timelinejs($nid = NULL, $width = '960px', $height = '500px') { $source = $base_url .'/timelinejs/json/'. (int) $nid; } + // Determine dimensions + if ($width == 'full') { + $width = '100%'; + } + + if ($height == 'full') { + $height = '100%'; + } + return theme('timelinejs', array( 'width' => $width, 'height' => $height, |