TSFInputControl determine proper Width for TextBlock #5093

Closed
opened 2026-01-31 00:04:50 +00:00 by claunia · 1 comment
Owner

Originally created by @philnach on GitHub (Nov 20, 2019).

Originally assigned to: @leonMSFT on GitHub.

from #1919

Code TODO to determine proper dynamic width for the TextBlock in the TSFInputControl. Ideally the Width should be set to the starting point of the cursor to the end of the border of the containers (Parent) control (i.e.: TerminalControl). Today it's set to a fixed width of 200. The size should take into account any scaling if applicable.

Originally created by @philnach on GitHub (Nov 20, 2019). Originally assigned to: @leonMSFT on GitHub. from #1919 Code TODO to determine proper dynamic width for the TextBlock in the TSFInputControl. Ideally the Width should be set to the starting point of the cursor to the end of the border of the containers (Parent) control (i.e.: TerminalControl). Today it's set to a fixed width of 200. The size should take into account any scaling if applicable.
Author
Owner

@leonMSFT commented on GitHub (Mar 10, 2020):

Removing the width(200) setting in #4688 allows the TextBlock to dynamically grow as the text grows. It'll stop growing once it hits the terminal window limit though, so I'll consider this issue closed.

@leonMSFT commented on GitHub (Mar 10, 2020): Removing the `width(200)` setting in #4688 allows the TextBlock to dynamically grow as the text grows. It'll stop growing once it hits the terminal window limit though, so I'll consider this issue closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5093