Fixed an issue where some help prompts were missing in the metadata editor.

This commit is contained in:
Leon Styhre 2021-10-08 19:02:30 +02:00
parent be6782d340
commit e12eb5a908

View file

@ -143,10 +143,6 @@ GuiMetaDataEd::GuiMetaDataEd(Window* window,
ed->setSize(0.0f, height);
row.addElement(ed, false, true);
auto ratingSpacer = std::make_shared<GuiComponent>(mWindow);
ratingSpacer->setSize(Renderer::getScreenWidth() * 0.001f, 0.0f);
row.addElement(ratingSpacer, false);
// Pass input to the actual RatingComponent instead of the spacer.
row.input_handler = std::bind(&GuiComponent::input, ed.get(), std::placeholders::_1,
std::placeholders::_2);
@ -162,10 +158,6 @@ GuiMetaDataEd::GuiMetaDataEd(Window* window,
ed->setChangedColor(TEXTCOLOR_USERMARKED);
row.addElement(ed, false);
auto dateSpacer = std::make_shared<GuiComponent>(mWindow);
dateSpacer->setSize(Renderer::getScreenWidth() * 0.0035f, 0.0f);
row.addElement(dateSpacer, false);
// Pass input to the actual DateTimeEditComponent instead of the spacer.
row.input_handler = std::bind(&GuiComponent::input, ed.get(), std::placeholders::_1,
std::placeholders::_2);