##// END OF EJS Templates
Fixing minor resize bug on the Mac.
Brian Granger -
Show More
@@ -1,42 +1,43
1 1
2 2 //============================================================================
3 3 // On document ready
4 4 //============================================================================
5 5
6 6
7 7 $(document).ready(function () {
8 8
9 9 MathJax.Hub.Config({
10 10 tex2jax: {
11 11 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
12 12 displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
13 13 },
14 14 displayAlign: 'left', // Change this to 'center' to center equations.
15 15 "HTML-CSS": {
16 16 styles: {'.MathJax_Display': {"margin": 0}}
17 17 }
18 18 });
19 19
20 20 $('div#header').addClass('border-box-sizing');
21 21 $('div#notebook_app').addClass('border-box-sizing ui-widget ui-widget-content');
22 22 $('div#notebook_panel').addClass('border-box-sizing ui-widget');
23 23
24 24 IPython.layout_manager = new IPython.LayoutManager();
25 25 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
26 26 IPython.left_panel = new IPython.LeftPanel('div#left_panel', 'div#left_panel_splitter');
27 27 IPython.save_widget = new IPython.SaveWidget('span#save_widget');
28 28 IPython.notebook = new IPython.Notebook('div#notebook');
29 29 IPython.kernel_status_widget = new IPython.KernelStatusWidget('#kernel_status');
30 30 IPython.kernel_status_widget.status_idle();
31 31
32 32 IPython.layout_manager.do_resize();
33 33 IPython.notebook.insert_code_cell_after();
34 34 IPython.layout_manager.do_resize();
35 IPython.pager.collapse();
36 IPython.layout_manager.do_resize();
37 35
38 36 // These have display: none in the css file and are made visible here to prevent FLOUC.
39 37 $('div#header').css('display','block');
40 38 $('div#notebook_app').css('display','block');
39 IPython.layout_manager.do_resize();
40 IPython.pager.collapse();
41 IPython.layout_manager.do_resize();
41 42 });
42 43
General Comments 0
You need to be logged in to leave comments. Login now