use viewport height for blocklywindow
This commit is contained in:
		
							parent
							
								
									182b5ada77
								
							
						
					
					
						commit
						14455547a4
					
				| @ -85,7 +85,7 @@ class CodeViewer extends Component { | |||||||
|     var curlyBrackets = '{ }'; |     var curlyBrackets = '{ }'; | ||||||
|     var unequal = '<>'; |     var unequal = '<>'; | ||||||
|     return ( |     return ( | ||||||
|       <Card style={{height: '100%', maxHeight: '500px'}} ref={this.myDiv}> |       <Card style={{ height: '100%', maxHeight: '80vH' }} ref={this.myDiv}> | ||||||
|         <Accordion |         <Accordion | ||||||
|           square={true} |           square={true} | ||||||
|           style={{ margin: 0 }} |           style={{ margin: 0 }} | ||||||
|  | |||||||
| @ -87,7 +87,7 @@ class Home extends Component { | |||||||
|               </IconButton> |               </IconButton> | ||||||
|             </Tooltip> |             </Tooltip> | ||||||
|             <TrashcanButtons /> |             <TrashcanButtons /> | ||||||
|             <BlocklyWindow blocklyCSS={{height: '500px'}} blockDisabled/> |             <BlocklyWindow blocklyCSS={{ height: '80vH' }} blockDisabled /> | ||||||
|           </Grid> |           </Grid> | ||||||
|           {this.state.codeOn ? |           {this.state.codeOn ? | ||||||
|             <Grid item xs={12} md={6}> |             <Grid item xs={12} md={6}> | ||||||
|  | |||||||
| @ -42,7 +42,7 @@ class Assessment extends Component { | |||||||
|             <BlocklyWindow |             <BlocklyWindow | ||||||
|               initialXml={statusTask ? statusTask.xml ? statusTask.xml : null : null} |               initialXml={statusTask ? statusTask.xml ? statusTask.xml : null : null} | ||||||
|               blockDisabled |               blockDisabled | ||||||
|               blocklyCSS={{height: '500px'}} |               blocklyCSS={{ height: '65vH' }} | ||||||
|             /> |             /> | ||||||
|           </Grid> |           </Grid> | ||||||
|           <Grid item xs={12} md={6} lg={4} style={isWidthDown('sm', this.props.width) ? { height: 'max-content' } : {}}> |           <Grid item xs={12} md={6} lg={4} style={isWidthDown('sm', this.props.width) ? { height: 'max-content' } : {}}> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user