mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix max-height overflow on input long text
This commit is contained in:
parent
e123c1c1cd
commit
4905d55e8a
2 changed files with 16 additions and 2 deletions
|
|
@ -52,7 +52,13 @@ impl Response for Box {
|
|||
.build();
|
||||
|
||||
g_box.append(&title);
|
||||
g_box.append(&text_view);
|
||||
g_box.append(
|
||||
>k::ScrolledWindow::builder()
|
||||
.child(&text_view)
|
||||
.max_content_height(320)
|
||||
.propagate_natural_height(true)
|
||||
.build(),
|
||||
);
|
||||
g_box.append(&control.g_box);
|
||||
|
||||
// Init events
|
||||
|
|
|
|||
|
|
@ -35,7 +35,15 @@ impl Titan for gtk::Box {
|
|||
.show_border(false)
|
||||
.build();
|
||||
|
||||
notebook.append_page(&text.text_view, Some(&Label::tab("Text")));
|
||||
notebook.append_page(
|
||||
>k::ScrolledWindow::builder()
|
||||
.child(&text.text_view)
|
||||
.max_content_height(320)
|
||||
.propagate_natural_height(true)
|
||||
.build(),
|
||||
Some(&Label::tab("Text")),
|
||||
);
|
||||
|
||||
notebook.append_page(&file.button, Some(&Label::tab("File")));
|
||||
|
||||
notebook.connect_switch_page({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue