| 139 | } |
| 140 | |
| 141 | void OnFocusLost(bool closing) override |
| 142 | { |
| 143 | if (!closing) { |
| 144 | this->options.Reset(DropDownOption::InstantClose); |
| 145 | this->Close(); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Fit dropdown list into available height, rounding to average item size. Width is adjusted if scrollbar is present. |