mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-06-25 00:52:09 +08:00
Fix dropdown compiler error
This commit is contained in:
parent
22a78b23c2
commit
c71cf3e4bf
@ -91,18 +91,19 @@ Component Dropdown(DropdownOption option) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!transform) {
|
if (!transform) {
|
||||||
transform = [](bool _open, Element _checkbox, Element _radiobox) {
|
transform = [](bool open, Element checkbox_element,
|
||||||
if (_open) {
|
Element radiobox_element) {
|
||||||
|
if (open) {
|
||||||
const int max_height = 12;
|
const int max_height = 12;
|
||||||
return vbox({
|
return vbox({
|
||||||
_checkbox,
|
checkbox_element,
|
||||||
separator(),
|
separator(),
|
||||||
_radiobox | vscroll_indicator | frame |
|
radiobox_element | vscroll_indicator | frame |
|
||||||
size(HEIGHT, LESS_THAN, max_height),
|
size(HEIGHT, LESS_THAN, max_height),
|
||||||
}) |
|
}) |
|
||||||
border;
|
border;
|
||||||
}
|
}
|
||||||
return vbox({_checkbox, filler()}) | border;
|
return vbox({checkbox_element, filler()}) | border;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user