summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-06-25 17:08:28 -0300
committerSilvio <silvio@socioambiental.org>2013-06-25 17:08:28 -0300
commit7cb8f306fba65d320e5d4529c3ecb1b40fb0d0e4 (patch)
treeed7ff8dde1e8ac69787ece2828731fa48aa9b86c
parent76335c26ad4596bec250d966f8dba55ab58361f3 (diff)
downloadtimelinejs-7cb8f306fba65d320e5d4529c3ecb1b40fb0d0e4.tar.gz
timelinejs-7cb8f306fba65d320e5d4529c3ecb1b40fb0d0e4.tar.bz2
Allow full timeline dimension
-rw-r--r--timelinejs.module9
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,