You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,15 +62,9 @@ class CommentBox extends Component {
60
62
super(props);
61
63
this.state={
62
64
isError: false,//it the error should be shown
63
-
errorText: '',// the error text
64
-
scale: [1]//Do not scale by default
65
+
errorText: ''// the error text
65
66
};
66
67
}
67
-
componentWillUnmount(){
68
-
this.setState({
69
-
scale: [1,0.3]
70
-
});
71
-
}
72
68
73
69
/**
74
70
* Adds for normal inputs
@@ -233,8 +229,19 @@ class CommentBox extends Component {
233
229
//set the posiotn of the comment box
234
230
_setPosition=()=>{
235
231
constMAX_POSITON_BOTTOM=250;
232
+
constHEIGHT={
233
+
CONTENTMODE: 231,
234
+
ELSE: 192,
235
+
EDDITMODE: 480
236
+
};
237
+
constSPACEING=100;
238
+
constPADDING=15;
236
239
//-------------------------------------------------------------------------------standard height with edit bar: standard height without eddit bar ------------------------------------------- the margin;
0 commit comments