mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 04:58:58 +00:00
Test scrolled listbox not at top
This commit is contained in:
parent
fbf0e16483
commit
eb56153b25
1 changed files with 8 additions and 1 deletions
|
@ -60,8 +60,15 @@ main (string[] args) {
|
||||||
scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
|
scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
|
||||||
hbox.add (scrolled);
|
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();
|
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++) {
|
for (int i = 0; i < num_rows; i++) {
|
||||||
var row = new Row ();
|
var row = new Row ();
|
||||||
|
|
Loading…
Reference in a new issue