TankOs/SFGUI

SpinButton doesn't default fill/expand properly

Opened this issue · 0 comments

When you don't set an allocation for the window the SpinButton doesn't expand/fill properly to its content.

SpinButton

Example Code

m_spin_button = sfg::SpinButton::Create(1.f, 8.f, 1.f);
m_spin_box = sfg::Box::Create(sfg::Box::Orientation::HORIZONTAL);
m_spin_box->Pack(m_spin_button, true, true);

m_options_box = sfg::Box::Create(sfg::Box::Orientation::VERTICAL);
m_options_box->Pack(m_spin_box, false, false);

m_ui = sfg::Window::Create();
m_ui->Add(m_options_box);

m_desktop.Add(m_ui);

Looks like the buttons aren't even taken into account.