-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextEdit height #577
Comments
Once I place the GroupBox{
Title: "Response body",
Layout: VBox{},
Children: []Widget{
ScrollView{
Layout: VBox{MarginsZero: true},
Children: []Widget{
TextEdit{
Text: strings.ReplaceAll(entry.Response.Content.Text, "\n", "\r\n"),
ReadOnly: true,
Font: Font{Family: "Consolas", PointSize: 10},
},
},
},
},
}, Kind of feel like a hacky solution though, but for now this seems to work. |
This is probably fixed by some layout system improvements that should land soon. Until then |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good day,
I am using
TextEdit
to display the body of a HTTP response. The problem is, once the response gets too big, theTextEdit
control will just grow to a size larger than the window. Below is an example of how it should look.Once there is a large amount of text however, it will look as such.
There is no way to scroll or resize.
The code for the tabpage looks as such.
I have not been able to figure out how to solve this issue. Setting the HScroll/VScroll in any way does not seem to help.
Thanks in advance!
The text was updated successfully, but these errors were encountered: