File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import  React  from  'react' ; 
2+ import  AutosizeTextarea  from  'react-textarea-autosize' ; 
23
34import  { toType }  from  './../helpers/util' ; 
45import  dispatcher  from  './../helpers/dispatcher' ; 
@@ -90,7 +91,7 @@ class VariableEditor extends React.Component {
9091        } 
9192
9293        return  ( 
93-         < div  class = "click-to-edit"  > 
94+         < div  class = "click-to-edit"  style = { { verticalAlign :  'top' } } > 
9495            < Edit 
9596            class = "click-to-edit-icon" 
9697            { ...Theme ( theme ,  'editVarIcon' ) } 
@@ -126,7 +127,7 @@ class VariableEditor extends React.Component {
126127        } 
127128
128129        return  ( 
129-         < div  class = "click-to-remove"  > 
130+         < div  class = "click-to-remove"  style = { { verticalAlign :  'top' } } > 
130131            < Remove 
131132            class = "click-to-remove-icon" 
132133            { ...Theme ( theme ,  'removeVarIcon' ) } 
@@ -183,8 +184,8 @@ class VariableEditor extends React.Component {
183184        const  { editValue}  =  this . state ; 
184185
185186        return  ( < div > 
186-             < textarea  type = 'text' 
187-             ref = { input  =>  input  &&  input . focus ( ) } 
187+             < AutosizeTextarea  type = 'text' 
188+             inputRef = { input  =>  input  &&  input . focus ( ) } 
188189            value = { editValue } 
189190            class = "variable-editor" 
190191            onChange = { ( event ) => { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments