equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * $Id: editor_plugin_src.js 766 2008-04-03 20:37:06Z spocke $ |
2 * $Id: editor_plugin_src.js 923 2008-09-09 16:45:29Z spocke $ |
3 * |
3 * |
4 * @author Moxiecode |
4 * @author Moxiecode |
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. |
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. |
6 */ |
6 */ |
7 |
7 |
58 |
58 |
59 // Fixes an IE bug where horizontal scrollbars would appear |
59 // Fixes an IE bug where horizontal scrollbars would appear |
60 if (tinymce.isIE && s.fullscreen_overflow == 'scroll') |
60 if (tinymce.isIE && s.fullscreen_overflow == 'scroll') |
61 s.fullscreen_overflow = 'auto'; |
61 s.fullscreen_overflow = 'auto'; |
62 |
62 |
|
63 // Fixes an IE bug where the scrollbars doesn't reappear |
|
64 if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll')) |
|
65 s.fullscreen_html_overflow = 'auto'; |
|
66 |
63 if (s.fullscreen_overflow == '0px') |
67 if (s.fullscreen_overflow == '0px') |
64 s.fullscreen_overflow = ''; |
68 s.fullscreen_overflow = ''; |
65 |
69 |
66 DOM.setStyle(DOM.doc.body, 'overflow', 'hidden'); |
70 DOM.setStyle(DOM.doc.body, 'overflow', 'hidden'); |
67 de.style.overflow = 'hidden'; //Fix for IE6/7 |
71 de.style.overflow = 'hidden'; //Fix for IE6/7 |
69 DOM.win.scrollTo(0, 0); |
73 DOM.win.scrollTo(0, 0); |
70 |
74 |
71 if (tinymce.isIE) |
75 if (tinymce.isIE) |
72 vp.h -= 1; |
76 vp.h -= 1; |
73 |
77 |
74 n = DOM.add(DOM.doc.body, 'div', {id : 'mce_fullscreen_container', style : 'position:absolute;top:0;left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'}); |
78 n = DOM.add(DOM.doc.body, 'div', {id : 'mce_fullscreen_container', style : 'position:' + (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel) ? 'absolute' : 'fixed') + ';top:0;left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'}); |
75 DOM.add(n, 'div', {id : 'mce_fullscreen'}); |
79 DOM.add(n, 'div', {id : 'mce_fullscreen'}); |
76 |
80 |
77 tinymce.each(ed.settings, function(v, n) { |
81 tinymce.each(ed.settings, function(v, n) { |
78 s[n] = v; |
82 s[n] = v; |
79 }); |
83 }); |