From 1fc5610874928c726fd6aeaff74f7a19ad87e222 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Tue, 16 Apr 2013 18:23:59 +0100 Subject: [PATCH] [#342,bugfix,timeline][s]: remove explicitly setting of width in JS as not the right way - fixes #342. --- _includes/recline-deps.html | 1 + css/timeline.css | 3 +++ docs/tutorial-views.markdown | 6 ++++-- src/view.timeline.js | 5 ----- 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 css/timeline.css diff --git a/_includes/recline-deps.html b/_includes/recline-deps.html index 4174fbfb..d58ce6d0 100644 --- a/_includes/recline-deps.html +++ b/_includes/recline-deps.html @@ -17,6 +17,7 @@ + diff --git a/css/timeline.css b/css/timeline.css new file mode 100644 index 00000000..0036d16f --- /dev/null +++ b/css/timeline.css @@ -0,0 +1,3 @@ +.recline-timeline { + position: relative; +} diff --git a/docs/tutorial-views.markdown b/docs/tutorial-views.markdown index 9fbdfe74..069862fb 100644 --- a/docs/tutorial-views.markdown +++ b/docs/tutorial-views.markdown @@ -251,9 +251,10 @@ First, add the additional dependencies for the timeline view. The timeline is bu {% endhighlight %} -Now, create a new div for the map: +Now, create a new div for the map (must have an explicit height for the timeline to render): {% highlight html %} +
{% endhighlight %} @@ -264,7 +265,8 @@ previously: {% include tutorial-views-timeline.js %} {% endhighlight %} -
 
+ +