I have a very basic usage of FlexBox that isn’t showing anything.
In my contructor:
fileLabel.setText("File not selected", juce::dontSendNotification); fileLabel.setFont(15); topControls.items.add(juce::FlexItem(fileLabel)); addAndMakeVisible(fileLabel);
In my resize:
auto bounds = getLocalBounds(); auto top = bounds.removeFromTop(15); topControls.performLayout(top);
When I debug it seems items is empty in the resize method which doesn’t make any sense to me. Also when I add the item in the resize method it doesn’t work either. Is there something very basic I’m missing here?