Fix scroll right sidebar problem list
This commit is contained in:
parent
0b32af57d6
commit
8028b9ab55
1 changed files with 15 additions and 5 deletions
|
@ -51,6 +51,18 @@
|
||||||
<script src="{{ static('libs/nouislider.min.js') }}" type="text/javascript"></script>
|
<script src="{{ static('libs/nouislider.min.js') }}" type="text/javascript"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var info_float = $('.info-float');
|
||||||
|
var container = $('#content-right');
|
||||||
|
if (window.bad_browser) {
|
||||||
|
container.css('float', 'right');
|
||||||
|
} else if (!featureTest('position', 'sticky')) {
|
||||||
|
fix_div(info_float, 55);
|
||||||
|
$(window).resize(function () {
|
||||||
|
info_float.width(container.width());
|
||||||
|
});
|
||||||
|
info_float.width(container.width());
|
||||||
|
}
|
||||||
|
|
||||||
{% if not request.in_contest_mode %}
|
{% if not request.in_contest_mode %}
|
||||||
// wrap middle and write column
|
// wrap middle and write column
|
||||||
if (window.matchMedia('(max-width: 799px)').matches) {
|
if (window.matchMedia('(max-width: 799px)').matches) {
|
||||||
|
@ -381,12 +393,10 @@
|
||||||
|
|
||||||
{% block right_sidebar %}
|
{% block right_sidebar %}
|
||||||
{% if not request.in_contest_mode %}
|
{% if not request.in_contest_mode %}
|
||||||
<div class="right-sidebar">
|
<div id="content-right" class="problems right-sidebar">
|
||||||
<div id="content-right" class="problems">
|
|
||||||
<div class="info-float">
|
<div class="info-float">
|
||||||
{% include "problem/search-form.html" %}
|
{% include "problem/search-form.html" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in a new issue