Fix scrolling on sidebar for posts
This commit is contained in:
parent
ffdffdeb96
commit
86b5c1b242
@ -121,4 +121,16 @@ link(href="{{ url_for('static_pillar', filename='assets/css/blog.css', v=1122016
|
|||||||
|
|
||||||
| {% block footer_scripts %}
|
| {% block footer_scripts %}
|
||||||
include ../_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 %}
|
| {% endblock %}
|
||||||
|
@ -93,4 +93,16 @@ script.
|
|||||||
window.location.replace("{{url_for('nodes.posts_edit', post_id=node._id)}}");
|
window.location.replace("{{url_for('nodes.posts_edit', post_id=node._id)}}");
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% 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 %}
|
| {% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user