Ticket #6873: 6873.patch
File 6873.patch, 2.2 KB (added by , 13 years ago) |
---|
-
_source/plugins/dialog/plugin.js
1706 1706 return; 1707 1707 1708 1708 var editor = dialog.getParentEditor(); 1709 var wrapperWidth, wrapperHeight, viewSize, origin, startSize; 1709 var wrapperWidth, wrapperHeight, 1710 viewSize, origin, startSize, 1711 dialogCover; 1710 1712 1711 1713 function positionDialog( right ) 1712 1714 { … … 1725 1727 { 1726 1728 startSize = dialog.getSize(); 1727 1729 1730 var content = dialog.parts.contents, 1731 iframeDialog = content.$.getElementsByTagName( 'iframe' ).length; 1732 1733 // Shim to help capturing "mousemove" over iframe. 1734 if ( iframeDialog ) 1735 { 1736 dialogCover = CKEDITOR.dom.element.createFromHtml( '<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>' ); 1737 content.append( dialogCover ); 1738 } 1739 1728 1740 // Calculate the offset between content and chrome size. 1729 1741 wrapperHeight = startSize.height - dialog.parts.contents.getSize( 'height', ! ( CKEDITOR.env.gecko || CKEDITOR.env.opera || CKEDITOR.env.ie && CKEDITOR.env.quirks ) ); 1730 1742 wrapperWidth = startSize.width - dialog.parts.contents.getSize( 'width', 1 ); … … 1803 1815 CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); 1804 1816 CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); 1805 1817 1818 if ( dialogCover ) 1819 { 1820 dialogCover.remove(); 1821 dialogCover = null; 1822 } 1823 1806 1824 if ( CKEDITOR.env.ie6Compat ) 1807 1825 { 1808 1826 var coverDoc = currentCover.getChild( 0 ).getFrameDocument(); -
_source/plugins/wsc/dialogs/wsc.js
186 186 var content = dialog.getContentElement( 'general', 'content' ).getElement(), 187 187 iframe = content && content.getChild( 2 ); 188 188 189 iframe && iframe.setStyle( 'height', data.height + 'px' ); 189 iframe && iframe.setSize( 'height', data.height ); 190 iframe && iframe.setSize( 'width', data.width ); 190 191 } 191 192 });