From 0f6c6e8e4d81670c600e08332f8ebb4121dbafac Mon Sep 17 00:00:00 2001
From: Richard Alam <ritzalam@gmail.com>
Date: Fri, 3 Aug 2012 19:36:17 +0000
Subject: [PATCH]  - add background and remove intial text

---
 .../modules/whiteboard/WhiteboardCanvasDisplayModel.as          | 2 ++
 .../bigbluebutton/modules/whiteboard/views/TextDrawListener.as  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/WhiteboardCanvasDisplayModel.as b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/WhiteboardCanvasDisplayModel.as
index da20360c6b..0c0d2216a3 100755
--- a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/WhiteboardCanvasDisplayModel.as
+++ b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/WhiteboardCanvasDisplayModel.as
@@ -161,6 +161,8 @@ package org.bigbluebutton.modules.whiteboard
 //			tobj.autoSize = TextFieldAutoSize.LEFT;
 			tobj.makeEditable(true);
             tobj.border = true;
+			tobj.background = true;
+			tobj.backgroundColor = 0xFFFFFF;
 //            LogUtil.debug("Putting text object [" + tobj.getGraphicID() + "] in [" + tobj.x + "," + tobj.y + "]");
 			tobj.registerListeners(textObjGainedFocusListener, textObjLostFocusListener, textObjTextListener, textObjSpecialListener);
 			wbCanvas.addGraphic(tobj);
diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/TextDrawListener.as b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/TextDrawListener.as
index e0c028fdb1..f81bb4677e 100755
--- a/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/TextDrawListener.as
+++ b/bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/views/TextDrawListener.as
@@ -55,7 +55,7 @@ package org.bigbluebutton.modules.whiteboard.views
                 
                 if (tbHeight < 15 || tbWidth < 50) return;
                 
-                var tobj:TextObject = _shapeFactory.createTextObject("Type your message here.", 0x000000, 0x000000, false, _mouseXDown, _mouseYDown, tbWidth, tbHeight, 18);
+                var tobj:TextObject = _shapeFactory.createTextObject("", 0x000000, 0x000000, false, _mouseXDown, _mouseYDown, tbWidth, tbHeight, 18);
                 LogUtil.error("Creating text at [" + mouseX + "," + mouseY + "] norm=[" + tobj.getOrigX() + "," + tobj.getOrigY() + "][" + tobj.textBoxWidth + "," + tobj.textBoxHeight + "]");
                 sendTextToServer(TextObject.TEXT_CREATED, tobj);                    
             }        
-- 
GitLab