Re: TreeView doesn't resize down




Daniel Kasak wrote:
    my $sw = Gtk2::ScrolledWindow->new;
[...]
    $sw->add_with_viewport( $self->{treeview} );

BZZT!

TreeView is a natively-scrollable widget, so adding with a viewport actually
breaks some of the built-in sizing and scrolling logic.  That should, instead,
be

    $sw->add ($self->{treeview});

The same goes for TextView.


-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]