witten
/
luminotes
Archived
1
0
Fork 0

Changing the way editor resizing works in Webkit (Chrome/Safari) so that it actually works properly.

This commit is contained in:
Dan Helfman 2009-01-13 14:14:03 -08:00
parent 2516f30625
commit 76e35cbbb9
1 changed files with 1 additions and 7 deletions

View File

@ -479,13 +479,7 @@ Editor.prototype.resize = function ( height ) {
height -= FRAME_BORDER_HEIGHT;
// if no height is given, get the height from this editor's document body
} else {
if ( WEBKIT ) {
var self = this;
withDocument( this.document, function () {
var body = getFirstElementByTagAndClassName( "body" );
height = elementDimensions( body ).h;
} );
} else if ( this.iframe.contentDocument ) { // Gecko and other sane browsers
if ( this.iframe.contentDocument && !WEBKIT ) { // Gecko and other sane browsers
height = elementDimensions( this.document.documentElement ).h;
} else { // IE
height = this.document.body.scrollHeight;