File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
projects/packages/jetpack-mu-wpcom/src/features/code-editor/code-editor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,10 @@ const setupEditor = async ( target: ReactHTMLTextAreaElement ): Promise< void >
8282 const containerStyleMap = containerElement . computedStyleMap ( ) ;
8383 const left = containerStyleMap . get ( 'padding-left' ) ?. toString ( ) || '0' ;
8484 const right = containerStyleMap . get ( 'padding-right' ) ?. toString ( ) || '0' ;
85+ const paddingBottom = containerStyleMap . get ( 'padding-bottom' ) ?. toString ( ) || '12px' ;
8586
8687 const top = `${ target . offsetTop } px` ;
87- div . style = `position: absolute; top: ${ top } ; left: ${ left } ; right: ${ right } ; height: calc(100% - ${ top } ) ;` ;
88+ div . style = `position: absolute; top: ${ top } ; left: ${ left } ; right: ${ right } ; padding-bottom: ${ paddingBottom } ;` ;
8889
8990 editor = new View . EditorView ( {
9091 doc : target . value ,
You can’t perform that action at this time.
0 commit comments