Parcourir la source

Keep config boxes in view on wide screen

Scott Lahteine il y a 9 ans
Parent
révision
5d0c93ae10

+ 1
- 0
Marlin/configurator/css/configurator.css Voir le fichier

300
 
300
 
301
 	#config_text, #config_adv_text { float: right; clear: right; width: 45%; }
301
 	#config_text, #config_adv_text { float: right; clear: right; width: 45%; }
302
 
302
 
303
+	pre.config { height: 20em; }
303
 }
304
 }

+ 6
- 0
Marlin/configurator/js/configurator.js Voir le fichier

186
           : $pre.slideUp(200, didAnim);
186
           : $pre.slideUp(200, didAnim);
187
       });
187
       });
188
 
188
 
189
+      // Fix the config boxes on the screen (in wide style)
190
+      $(window).bind('scroll resize', function(){
191
+        var $cfg = $('#config_text'), wtop = $(window).scrollTop(), ctop = $cfg.offset().top;
192
+        $cfg.css({ paddingTop: ctop < $form.offset().top+100 && wtop > ctop ? wtop-ctop : 0 });
193
+      });
194
+
189
       // Read boards.h, Configuration.h, Configuration_adv.h
195
       // Read boards.h, Configuration.h, Configuration_adv.h
190
       var ajax_count = 0, success_count = 0;
196
       var ajax_count = 0, success_count = 0;
191
       var loaded_items = {};
197
       var loaded_items = {};

Chargement…
Annuler
Enregistrer