Fix scrolling on sidebar for posts
This commit is contained in:
@@ -121,4 +121,16 @@ link(href="{{ url_for('static_pillar', filename='assets/css/blog.css', v=1122016
|
||||
|
||||
| {% block footer_scripts %}
|
||||
include ../_scripts
|
||||
script.
|
||||
var project_container = document.getElementById('project-container');
|
||||
|
||||
/* UI Stuff */
|
||||
$(window).on("load resize",function(){
|
||||
containerResizeY($(window).height());
|
||||
|
||||
if ($(window).width() > 480) {
|
||||
project_container.style.height = (window.innerHeight - project_container.offsetTop) + "px";
|
||||
}
|
||||
});
|
||||
|
||||
| {% endblock %}
|
||||
|
@@ -93,4 +93,16 @@ script.
|
||||
window.location.replace("{{url_for('nodes.posts_edit', post_id=node._id)}}");
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
var project_container = document.getElementById('project-container');
|
||||
|
||||
/* UI Stuff */
|
||||
$(window).on("load resize",function(){
|
||||
containerResizeY($(window).height());
|
||||
|
||||
if ($(window).width() > 480) {
|
||||
project_container.style.height = (window.innerHeight - project_container.offsetTop) + "px";
|
||||
}
|
||||
});
|
||||
|
||||
| {% endblock %}
|
||||
|
Reference in New Issue
Block a user