openframeworks / openframeworks/openFrameworks
minimizing group in ofxPanel breaks the layout...
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Not sure if it's a bug because I do not used this method previously...
...
//adding params to group
params_Timeline.add(text_ZoomTimeline);
params_Timeline.add(SHOW_AllPlots);
//adding groups (nested) to main group
params_TextPlayer.add(params_Slides);
params_TextPlayer.add(params_Player);
params_TextPlayer.add(params_PlayerGlobal);
params_TextPlayer.add(params_Modes);
params_TextPlayer.add(params_Timeline);
//setup panel
gui_TextPlayer.setup("TEXT PLAYER");
//add all nested groups
gui_TextPlayer.add(params_TextPlayer);
//minimize any group
//gui_TextPlayer.getGroup("PLAYER").minimize();//BUG
//gui_TextPlayer.getGroup("SLIDES").minimize();//BUG
//gui_TextPlayer.getGroup("MODES").minimize();//BUG
gui_TextPlayer.getGroup("TIMELINE").minimize();//BUG
//gui_TextPlayer.getGroup("TEXT PLAYER").minimize();//BUG
I have this nested groups inside the panel:

When adding minimizing any group, layout brokes...
Minimized group draws another '+' on the left and it duplicates the header above..


(I used some custom font and sizes when creating the gui)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the nested-group example using ofxPanel setup, add, getGroup, and minimize, including the custom font and sizes mentioned. Trace the layout behavior when TIMELINE or another nested group is minimized; done means the minimized group has one header and one '+' control without breaking the surrounding layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100