X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.cpp;fp=source%2Fdropdown.cpp;h=8cc6187f2243a552b0943dde919dff6e6c0d18cb;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=34ca1781153f946fddaaf69f82e993643b2864f1;hpb=6d73e04329fc3752552773e4d11d7374caf779f6;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index 34ca178..8cc6187 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -25,6 +25,9 @@ Dropdown::Dropdown(ListData &d): void Dropdown::init() { + // Necessary to have the parent container raise the dropdown on click + input_type = INPUT_TEXT; + dropped = false; add(list);