MDL-42684 TinyMCE: make tinymce start at full width

This commit is contained in:
Jason Fowler
2013-11-08 12:57:46 +08:00
committed by Dan Poltawski
parent c8868cefe2
commit 762a29690e
@@ -155,7 +155,7 @@
// Resizes the iframe by a relative height value
_resizeIframe : function(ed, tb_id, dy) {
var ifr = ed.getContentAreaContainer().firstChild;
var ifrcon = ed.getContentAreaContainer();
var ultcon = ed.getContainer().parentNode; //Ultimate parent container
var textarea = DOM.get(ed.id);
var rows = textarea ? textarea.getAttribute('rows') : 3;
@@ -173,7 +173,8 @@
}
DOM.setStyle(ifr, 'height',DOM.getSize(ifr).h + dy); // Resize iframe
DOM.setStyle(ifr, 'width',DOM.getSize(ifrcon).w); // Resize iframe
DOM.setStyle(textarea, 'width',DOM.getSize(ultcon).w);
DOM.setStyle(ifr, 'width',DOM.getSize(ultcon).w); // Resize iframe
ed.theme.deltaHeight += dy; // For resize cookie
if (collapsedContainer) {