This is, I think, a design decision of GTK (mainly due to accessibility concerns). See issue post here: https://gitlab.gnome.org/GNOME/gtk/-/issues/270#note_394060.
It may be possible to implement the keypress hack you described, but you may be compromising accessibility for aesthetics. Best, Jeremy On Wed, Mar 23, 2022 at 04:59:42PM +0100, Kerenoc Kerenoc via gtk-perl-list wrote: > Hello, > > With Gtk3 on Windows and Linux, when a ComboBox has a long list of items to > select from, there is a large empty zone above the first element of the > list. Using the up arrow key then the down arrow key restores a normal > situation. > > Here is a simple program to reproduce the problem. > > ================================ > #!/usr/bin/perl > > use Gtk3 -init; > > my $combobox = Gtk3::ComboBoxText->new; > for (0 .. 150) { $combobox->append_text("$_"); }; > $combobox->set_active(0); > > my $window=Gtk3::Window->new('toplevel'); > $window->signal_connect( destroy => sub {Gtk3::main_quit} ); > $window->add($combobox); > $window->show_all; > Gtk3->main(); > ================================ > > The problem can also be reproduced with a Gtk3::ComboBox. > > In case this problem couldn't be solved, how could one emulate two key > events (up and down) in a callback when the combobox opens? > > Best regards > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-perl-list -- Few things are harder to put up with than the annoyance of a good example. -- "Mark Twain, Pudd'nhead Wilson's Calendar" _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list