mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use shared input max height value
This commit is contained in:
parent
4905d55e8a
commit
e813cdeafa
3 changed files with 23 additions and 6 deletions
|
|
@ -23,6 +23,7 @@ pub trait Response {
|
|||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
max_content_height: i32,
|
||||
) -> Self;
|
||||
}
|
||||
|
||||
|
|
@ -35,6 +36,7 @@ impl Response for Box {
|
|||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
max_content_height: i32,
|
||||
) -> Self {
|
||||
// Init components
|
||||
let control = Rc::new(Control::build());
|
||||
|
|
@ -55,7 +57,7 @@ impl Response for Box {
|
|||
g_box.append(
|
||||
>k::ScrolledWindow::builder()
|
||||
.child(&text_view)
|
||||
.max_content_height(320)
|
||||
.max_content_height(max_content_height)
|
||||
.propagate_natural_height(true)
|
||||
.build(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue