Skip to content

SpinButton doesn't default fill/expand properly #29

@eXpl0it3r

Description

@eXpl0it3r

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions