File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,12 @@ export default class Term extends React.PureComponent<TermProps> {
188
188
this . searchAddon = props . searchAddon ! ;
189
189
}
190
190
191
+ try {
192
+ this . term . element ! . style . padding = props . padding ;
193
+ } catch ( error ) {
194
+ console . log ( error ) ;
195
+ }
196
+
191
197
this . fitAddon . fit ( ) ;
192
198
193
199
if ( this . props . isTermActive ) {
@@ -377,6 +383,12 @@ export default class Term extends React.PureComponent<TermProps> {
377
383
378
384
this . termOptions = nextTermOptions ;
379
385
386
+ try {
387
+ this . term . element ! . style . padding = this . props . padding ;
388
+ } catch ( error ) {
389
+ console . log ( error ) ;
390
+ }
391
+
380
392
if (
381
393
this . props . fontSize !== prevProps . fontSize ||
382
394
this . props . fontFamily !== prevProps . fontFamily ||
@@ -427,12 +439,7 @@ export default class Term extends React.PureComponent<TermProps> {
427
439
428
440
render ( ) {
429
441
return (
430
- < div
431
- className = { `term_fit ${ this . props . isTermActive ? 'term_active' : '' } ` }
432
- style = { { padding : this . props . padding } }
433
- onMouseUp = { this . onMouseUp }
434
- onClick = { this . focus }
435
- >
442
+ < div className = { `term_fit ${ this . props . isTermActive ? 'term_active' : '' } ` } onMouseUp = { this . onMouseUp } >
436
443
{ this . props . customChildrenBefore }
437
444
< div ref = { this . onTermWrapperRef } className = "term_fit term_wrapper" />
438
445
{ this . props . customChildren }
You can’t perform that action at this time.
0 commit comments