equal
deleted
inserted
replaced
40 } |
40 } |
41 |
41 |
42 function expander_set_height() |
42 function expander_set_height() |
43 { |
43 { |
44 var expander = document.getElementById('sidebar-hide'); |
44 var expander = document.getElementById('sidebar-hide'); |
45 var magic = $('header').Height() + $('pagebar_main').Height(); |
45 var magic = $dynano('header').Height() + $dynano('pagebar_main').Height(); |
46 var height = getHeight(); |
46 var height = getHeight(); |
47 var exheight = height - magic; |
47 var exheight = height - magic; |
48 expander.style.height = exheight + 'px'; |
48 expander.style.height = exheight + 'px'; |
49 expander.style.top = magic + 'px'; |
49 expander.style.top = magic + 'px'; |
50 expander_set_pos(); |
50 expander_set_pos(); |
66 } |
66 } |
67 |
67 |
68 function expander_set_pos() |
68 function expander_set_pos() |
69 { |
69 { |
70 var winheight = getHeight(); |
70 var winheight = getHeight(); |
71 var magic = $('header').Height() + $('pagebar_main').Height(); |
71 var magic = $dynano('header').Height() + $dynano('pagebar_main').Height(); |
72 var top = getScrollOffset(); |
72 var top = getScrollOffset(); |
73 if ( typeof(top) != 'number' ) |
73 if ( typeof(top) != 'number' ) |
74 { |
74 { |
75 return null; |
75 return null; |
76 } |
76 } |