FitAddon is calculating wrong dimension #4853
-
I am using fitaddon to fit terminal in my element and my elements height , width is set to 100% but fit addon calculates small dimensions of terminal as shown in given image. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Wrong understanding. |
Beta Was this translation helpful? Give feedback.
-
@bajrangCoder hi. Can you provide CSS for your elements. |
Beta Was this translation helpful? Give feedback.
-
@bajrangCoder Bottom gap looks likes its smaller than one line in height, right side gap looks like its reserving space for the scrollbar + a gap < 1 cell width - I'd say this works as intended. Those cell fitting gaps can only be leveled out by some CSS adjusting rules, the terminal/fit addon cannot fill that fully, if the dimensions of the outer container is not a perfect fit. Regarding the scrollbar space - this can be deactivated (makes sense if your content never gonna run it scrollback), or just always show it. |
Beta Was this translation helpful? Give feedback.
@bajrangCoder Bottom gap looks likes its smaller than one line in height, right side gap looks like its reserving space for the scrollbar + a gap < 1 cell width - I'd say this works as intended.
Those cell fitting gaps can only be leveled out by some CSS adjusting rules, the terminal/fit addon cannot fill that fully, if the dimensions of the outer container is not a perfect fit.
Regarding the scrollbar space - this can be deactivated (makes sense if your content never gonna run it scrollback), or just always show it.