Mercurial > public > sg101
comparison media/js/tiny_mce/plugins/fullscreen/editor_plugin_src.js @ 247:6ed2932901fa
Update tinymce to 3.3.9
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 18 Sep 2010 19:54:11 +0000 |
parents | 237710206167 |
children |
comparison
equal
deleted
inserted
replaced
246:e4dc0b649fcb | 247:6ed2932901fa |
---|---|
117 | 117 |
118 t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() { | 118 t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() { |
119 var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize; | 119 var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize; |
120 | 120 |
121 // Get outer/inner size to get a delta size that can be used to calc the new iframe size | 121 // Get outer/inner size to get a delta size that can be used to calc the new iframe size |
122 outerSize = fed.dom.getSize(fed.getContainer()); | 122 outerSize = fed.dom.getSize(fed.getContainer().firstChild); |
123 innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]); | 123 innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]); |
124 | 124 |
125 fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h); | 125 fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h); |
126 }); | 126 }); |
127 } | 127 } |