xtermjs/xterm.js

Auto fit addon doesn't work when parent element uses border-box

Open

#1.283 aberto em 12 de fev. de 2018

Ver no GitHub
 (4 comments) (0 reactions) (1 assignee)TypeScript (1.574 forks)batch import
area/addon/fitgood first issuehelp wantedtype/bug

Métricas do repositório

Stars
 (16.196 stars)
Métricas de merge de PR
 (Mesclagem média 2d 10h) (16 fundiu PRs em 30d)

Description

The calculations for height and width of the parent in the auto fit plugin are incorrect when the parent element uses box-sizing: border-box. This is because the computed height includes the padding but the content does not.

The right implementation might be to get the client height of the parent element using gBCR and then subtract the parent padding.

/CC @taion

Guia do colaborador