Skip to content

Commit

Permalink
Style fixes for dashboard and charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Dorn committed Dec 22, 2014
1 parent be664db commit 6100874
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions templates/default/html/chart_page.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@
<script src="{{ base }}/public/js/timeline.js"></script>
<link rel="stylesheet" type="text/css" href="{{ base }}/public/css/timeline.css">
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style type='text/css'>
body {
margin: 0;
}
</style>
{% endblock %}
8 changes: 7 additions & 1 deletion templates/default/html/dashboard.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{% block stylesheets %}
{{ parent() }}
<style>
#content {
width: auto;
}
#reports_holder {
margin-top: 20px;
}
Expand Down Expand Up @@ -115,7 +118,10 @@ $.each(dashboard.reports, function(i,report) {
holder = $("<iframe>").appendTo(container).css({
border: 0,
width: '100%'
}).iframeAutoHeight();
}).on('load',function() {
$(this).height($(this).get(0).contentWindow.document.body.scrollHeight);
$(this).width($(this).get(0).contentWindow.document.body.scrollWidth);
});
if(report.style) holder.attr('style',holder.attr('style')+';'+report.style);
}
Expand Down

0 comments on commit 6100874

Please sign in to comment.