From 4c3d3740625ac461de576f84ddca8d97751006a6 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 18 Nov 2008 16:16:52 -0800 Subject: [PATCH] Fixes for IE 6. --- static/css/ie6.css | 4 ++-- static/js/Editor.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/static/css/ie6.css b/static/css/ie6.css index 771e4b0..06d363f 100644 --- a/static/css/ie6.css +++ b/static/css/ie6.css @@ -9,7 +9,7 @@ #note_tree_area { position: absolute; - width: expression( eval( document.all.everything_area && ( document.all.everything_area.offsetLeft - 60 ) || 0 ) ); + width: expression( eval( document.all.everything_area && document.all.everything_area.offsetLeft || 0 ) ); top: expression( eval( document.compatMode && document.compatMode == 'CSS1Compat' ) ? documentElement.scrollTop + 30 : document.body.scrollTop + 30 ); } @@ -24,7 +24,7 @@ #link_area { position: absolute; - width: expression( eval( document.all.everything_area && document.all.everything_area.offsetLeft || 0 ) ); + width: expression( eval( document.all.everything_area && ( document.all.everything_area.offsetLeft - 60 ) || 0 ) ); top: expression( eval( document.compatMode && document.compatMode == 'CSS1Compat' ) ? documentElement.scrollTop + 30 : document.body.scrollTop + 30 ); } diff --git a/static/js/Editor.js b/static/js/Editor.js index c3ac3fd..b2d760d 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -684,6 +684,8 @@ Editor.prototype.focus = function () { } Editor.prototype.contents = function () { + if ( !this.document || !this.document.body ) + return ""; return this.document.body.innerHTML; }