openframeworks / openframeworks/openFrameworks

minimizing group in ofxPanel breaks the layout...

Open
#6,459 0 comments 0 reactions 0 assignees View on GitHub

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:
Screen Shot 2019-11-17 at 17 44 32

When adding minimizing any group, layout brokes...
Minimized group draws another '+' on the left and it duplicates the header above..
Screen Shot 2019-11-17 at 17 45 41
Screen Shot 2019-11-17 at 17 45 50

(I used some custom font and sizes when creating the gui)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.