remove logs and fix textbox more
This commit is contained in:
parent
7bae3be085
commit
da6cd7e78d
@ -984,20 +984,13 @@ const whiteboard = {
|
|||||||
remote
|
remote
|
||||||
) {
|
) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
console.log(isStickyNote);
|
|
||||||
var cssclass = "textBox";
|
var cssclass = "textBox";
|
||||||
if (isStickyNote) {
|
if (isStickyNote) {
|
||||||
cssclass += " stickyNote";
|
cssclass += " stickyNote";
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Fix canvas shrink on textbox move out of the bounderies
|
|
||||||
// Rect goes out not able to remove from screen with a kind of left > +_this.canvas.width ? -9999 : left + _this.viewCoords.x
|
|
||||||
console.log(_this.viewCoords);
|
|
||||||
console.log(this.canvas);
|
|
||||||
left = left + _this.viewCoords.x;
|
left = left + _this.viewCoords.x;
|
||||||
top = top + _this.viewCoords.y;
|
top = top + _this.viewCoords.y;
|
||||||
console.log(left);
|
|
||||||
console.log(+_this.canvas.width);
|
|
||||||
let editable = _this.tool == "text" || _this.tool === "stickynote" ? "true" : "false";
|
let editable = _this.tool == "text" || _this.tool === "stickynote" ? "true" : "false";
|
||||||
var textBox = $(
|
var textBox = $(
|
||||||
'<div id="' +
|
'<div id="' +
|
||||||
@ -1106,7 +1099,10 @@ const whiteboard = {
|
|||||||
$("#" + txId).remove();
|
$("#" + txId).remove();
|
||||||
},
|
},
|
||||||
setTextboxPosition(txId, top, left) {
|
setTextboxPosition(txId, top, left) {
|
||||||
$("#" + txId).css({ top: top + "px", left: left + "px" });
|
$("#" + txId).css({
|
||||||
|
top: top + this.viewCoords.y + "px",
|
||||||
|
left: left + this.viewCoords.x + "px",
|
||||||
|
});
|
||||||
},
|
},
|
||||||
setTextboxFontSize(txId, fontSize) {
|
setTextboxFontSize(txId, fontSize) {
|
||||||
$("#" + txId)
|
$("#" + txId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user