[#342,bugfix,timeline][s]: remove explicitly setting of width in JS as not the right way - fixes #342.
This commit is contained in:
@@ -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"> </div>
|
||||
<style type="text/css">#mytimeline .recline-timeline { height: 400px; }</style>
|
||||
<div id="mytimeline"></div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
Reference in New Issue
Block a user