From eb56153b25f6f66017e7c921dae98306aec3180e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 21 May 2012 14:40:57 +0200 Subject: [PATCH] Test scrolled listbox not at top --- test-scrolled.vala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test-scrolled.vala b/test-scrolled.vala index 669b91ec..994e5549 100644 --- a/test-scrolled.vala +++ b/test-scrolled.vala @@ -59,9 +59,16 @@ main (string[] args) { var scrolled = new ScrolledWindow (null, null); scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC); hbox.add (scrolled); + + var scrolled_box = new Box(Orientation.VERTICAL, 0); + scrolled.add_with_viewport (scrolled_box); + + var label = new Label ("This is \na LABEL\nwith rows"); + scrolled_box.add (label); var list = new ListBox(); - list.add_to_scrolled (scrolled); + scrolled_box.add (list); + list.set_adjustment (scrolled.get_vadjustment ()); for (int i = 0; i < num_rows; i++) { var row = new Row ();