Skip to content

Commit

Permalink
fix(playground): fix recurstion related to textarea sizing
Browse files Browse the repository at this point in the history
Refs #4027
  • Loading branch information
char0n committed Apr 16, 2024
1 parent 4b23205 commit b993ba8
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ const Editor = ({ className }) => {
return (
<div className={className}>
<FormControl fullWidth>
<OutlinedInput
<OutlinedInput // currently not showing scroll bar due to https://github.com/swagger-api/apidom/issues/4027
fullWidth
multiline
id="input"
sx={{
height: '100%',
'.MuiInputBase-inputMultiline': {
height: 'calc(100vh - 64px - 190px - 80px)',
maxHeight: 'calc(100vh - 64px - 190px - 80px)',
display: 'block',
},
}}
value={source}
onChange={handleEditorChange}
inputProps={{
style: { display: 'block', height: '100%', overflow: 'auto' },
style: {
height: 'calc(100vh - 64px - 190px - 80px)',
},
}}
/>
</FormControl>
Expand Down

0 comments on commit b993ba8

Please sign in to comment.