Don't use a ScrollView for Dipser's generic editor
This commit is contained in:
parent
101075795d
commit
d9003ca2d1
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -641,7 +641,7 @@ name = "crisp"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"nih_plug",
|
||||
"nih_plug_iced",
|
||||
"nih_plug_vizia",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -36,7 +36,7 @@ impl Model for Data {}
|
|||
|
||||
// Makes sense to also define this here, makes it a bit easier to keep track of
|
||||
pub(crate) fn default_state() -> Arc<ViziaState> {
|
||||
ViziaState::from_size(360, 300)
|
||||
ViziaState::from_size(380, 305)
|
||||
}
|
||||
|
||||
pub(crate) fn create(
|
||||
|
@ -57,13 +57,14 @@ pub(crate) fn create(
|
|||
.child_top(Stretch(1.0))
|
||||
.child_bottom(Pixels(0.0))
|
||||
// Make this more or less align with the parameters column
|
||||
.right(Percentage(14.0));
|
||||
.right(Percentage(12.0));
|
||||
|
||||
ScrollView::new(cx, 0.0, 0.0, false, true, |cx| {
|
||||
GenericUI::new(cx, Data::params);
|
||||
})
|
||||
.width(Percentage(100.0));
|
||||
// See the Crisp generic UI for an example using a ScrollView
|
||||
GenericUI::new(cx, Data::params)
|
||||
.width(Percentage(100.0))
|
||||
.child_top(Pixels(5.0));
|
||||
})
|
||||
.width(Percentage(100.0))
|
||||
.row_between(Pixels(0.0))
|
||||
.child_left(Stretch(1.0))
|
||||
.child_right(Stretch(1.0));
|
||||
|
|
Loading…
Reference in a new issue