JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

Grid: allow tabs/spaces in area strings

Open schuetzenhofer opened this issue 2 years ago • 0 comments
trafficstars

This assertion would trigger if there are tabs in the area strings.

jassert (s.size() == strings[0].size()); // all rows must have the same number of columns

For readability formatting the strings to resemble the grid would make sense. Example_

grid.templateAreas = { 
"empty   empty   empty   empty   empty   empty   empty",
"undo    redo    blank   btnA    btnB    btnC    settings",
"empty   empty   empty   empty   empty   empty   empty" 
};

schuetzenhofer avatar Jul 06 '23 13:07 schuetzenhofer