Keep config boxes in view on wide screen
This commit is contained in:
parent
335b7680c9
commit
5d0c93ae10
2 changed files with 7 additions and 0 deletions
|
@ -300,4 +300,5 @@ a.download {
|
||||||
|
|
||||||
#config_text, #config_adv_text { float: right; clear: right; width: 45%; }
|
#config_text, #config_adv_text { float: right; clear: right; width: 45%; }
|
||||||
|
|
||||||
|
pre.config { height: 20em; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,6 +186,12 @@ var configuratorApp = (function(){
|
||||||
: $pre.slideUp(200, didAnim);
|
: $pre.slideUp(200, didAnim);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Fix the config boxes on the screen (in wide style)
|
||||||
|
$(window).bind('scroll resize', function(){
|
||||||
|
var $cfg = $('#config_text'), wtop = $(window).scrollTop(), ctop = $cfg.offset().top;
|
||||||
|
$cfg.css({ paddingTop: ctop < $form.offset().top+100 && wtop > ctop ? wtop-ctop : 0 });
|
||||||
|
});
|
||||||
|
|
||||||
// Read boards.h, Configuration.h, Configuration_adv.h
|
// Read boards.h, Configuration.h, Configuration_adv.h
|
||||||
var ajax_count = 0, success_count = 0;
|
var ajax_count = 0, success_count = 0;
|
||||||
var loaded_items = {};
|
var loaded_items = {};
|
||||||
|
|
Reference in a new issue