fix bug that dropdown list of combox may excess screen

This commit is contained in:
Jinhao
2017-10-20 04:19:35 +08:00
parent 24bbfc6493
commit 94ab3b9f78
3 changed files with 82 additions and 44 deletions

View File

@@ -38,9 +38,9 @@ namespace nana
{
std::vector<std::shared_ptr<item_interface>> items;
std::size_t max_items{10}; // the number of items display.
mutable std::size_t index{::nana::npos}; // the result of the selection.
mutable bool have_selected;
std::size_t max_items{ 10 }; // the number of items display.
mutable std::size_t index{ ::nana::npos }; // the result of the selection.
mutable bool have_selected{ false };
};
class item_renderer