mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-06-24 16:21:12 +08:00
Fix shadowed vars
This commit is contained in:
parent
60ba15ac07
commit
803cfda875
@ -91,18 +91,18 @@ Component Dropdown(DropdownOption option) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!transform) {
|
if (!transform) {
|
||||||
transform = [](bool open, Element checkbox, Element radiobox) {
|
transform = [](bool _open, Element _checkbox, Element _radiobox) {
|
||||||
if (open) {
|
if (_open) {
|
||||||
const int max_height = 12;
|
const int max_height = 12;
|
||||||
return vbox({
|
return vbox({
|
||||||
checkbox,
|
_checkbox,
|
||||||
separator(),
|
separator(),
|
||||||
radiobox | vscroll_indicator | frame |
|
_radiobox | 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, filler()}) | border;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user