From c402227d1672e8515a86d07a0a4a707f8d86805c Mon Sep 17 00:00:00 2001 From: Patrick Donelan Date: Thu, 8 Jan 2009 03:15:05 +0000 Subject: [PATCH] Removed SimpleEditor title, improved handling of editor window when it is bigger than viewable screen --- www/extras/wobject/Survey/editsurvey/object.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/extras/wobject/Survey/editsurvey/object.js b/www/extras/wobject/Survey/editsurvey/object.js index 7d9b9d583..02c05bf12 100644 --- a/www/extras/wobject/Survey/editsurvey/object.js +++ b/www/extras/wobject/Survey/editsurvey/object.js @@ -25,7 +25,7 @@ Survey.ObjectTemplate = new function(){ var form = new YAHOO.widget.Dialog(type, { width : "500px", - fixedcenter : true, + context: [document.body, 'tr', 'tr'], visible : false, constraintoviewport : true, buttons : butts @@ -49,7 +49,9 @@ Survey.ObjectTemplate = new function(){ width: width, dompath: false //Turns on the bar at the bottom }); + myTextarea.get('toolbar').titlebar = false; myTextarea.render(); + form.show(); }