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