mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix select 'select' mode list width
This commit is contained in:
parent
3f68ed5fe4
commit
9f24df9a1c
1 changed files with 5 additions and 1 deletions
|
|
@ -21,7 +21,11 @@ SelectBox::SelectBox(
|
|||
options(std::move(options)), mode(mode) {
|
||||
listenAction(UIAction::CLICK, [this, contentWidth](GUI& gui) {
|
||||
auto panel = std::make_shared<Panel>(
|
||||
gui, glm::vec2 {contentWidth, contentWidth}, glm::vec4 {2.0f}, 0.0f
|
||||
gui,
|
||||
getMode() == Mode::BUTTON ? glm::vec2 {contentWidth, contentWidth}
|
||||
: getSize(),
|
||||
glm::vec4 {2.0f},
|
||||
0.0f
|
||||
);
|
||||
panel->setColor({});
|
||||
panel->setPadding(glm::vec4(0, size.y, 0, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue