Problem with long list for ComboBoxText



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




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