xtermjs/xterm.js
Auf GitHub ansehenAuto fit addon doesn't work when parent element uses border-box
Open
#1.283 geöffnet am 12. Feb. 2018
area/addon/fitgood first issuehelp wantedtype/bug
Repository-Metriken
- Stars
- (16.196 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 2T 10h) (16 gemergte PRs in 30 T)
Beschreibung
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