question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextField - Doesn't keep text alignment while window resizing

See original GitHub issue

I created a text field like this inside a frameview: TxtServerUrl = new TextField(linuxServiceSettings.ServerUrl) { X = leftTextBoxes + X_SEPARATOR, Y = Pos.Top(LblServerUrl), Width = Dim.Fill(margin), Enabled = false }; TxtServerUrl.TextAlignment = TextAlignment.Left; Add(TxtServerUrl); and it shows the text ok, but while resizing the window (using the mouse, or clicking on maximize and minimize), the text isn´t shown from the left to the right as expected (i also have a label containig long text and it works as expected) instead it shows always like from right to left and at some point it starts showing the whole text while enlarging, but not exactly after having enough room.

Tested it running from VS 2022 but also on Ubuntu 20.04 with desktop ScreenCapture_03_After maximizing using mouse ScreenCapture_01_OriginalState ScreenCapture_02_After shrinking using mouse .

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
tznindcommented, Jul 26, 2022

Thank you, sorry for the inconvenience!

Raising issues is always helpful, it provides answers for future users as well as identifying any areas of the API that are confusing. No need to apologies!

1reaction
neciolazacommented, Jul 25, 2022

Thank you, sorry for the inconvenience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to keep a text inside a div when resizing the browser ...
I want the text to stay inside the div, and that is going good so far, but when I resize the window of...
Read more >
Auto-Growing Inputs & Textareas
Resizing actual input elements​​ One idea I had is to wrap the input in a relative inline parent and absolutely position it inside....
Read more >
Change how text fits in placeholders & text boxes
By default: Text automatically shrinks to fit a text placeholder. A newly created text box automatically resizes to fit text.
Read more >
Fit text in a text box
To shrink or expand text to fit in the text box when you resize the box, click Best Fit. Fit text manually. Here...
Read more >
resize - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The resize CSS property sets whether an element is resizable, and if so, in which directions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found