[#342,bugfix,timeline][s]: remove explicitly setting of width in JS as not the right way - fixes #342.

This commit is contained in:
Rufus Pollock
2013-04-16 18:23:59 +01:00
parent fc64fdab8f
commit 1fc5610874
4 changed files with 8 additions and 7 deletions

View File

@@ -251,9 +251,10 @@ First, add the additional dependencies for the timeline view. The timeline is bu
<script type="text/javascript" src="vendor/timeline/20120520/js/timeline.js"></script>
{% 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 %}
<style type="text/css">#mytimeline .recline-timeline { height: 400px; }</style>
<div id="mytimeline"></div>
{% endhighlight %}
@@ -264,7 +265,8 @@ previously:
{% include tutorial-views-timeline.js %}
{% endhighlight %}
<div id="mytimeline">&nbsp;</div>
<style type="text/css">#mytimeline .recline-timeline { height: 400px; }</style>
<div id="mytimeline"></div>
<div style="clear: both;"></div>
<script type="text/javascript">