getScreenBounds() in resized initially returns {0,0,width,height}, but correct after I resize JUCEApplication

Hi,
Is this correct? I am on Catilina 10.15.2, Xcode 11.3.1 and Juce 5.4.5.
Thank you

can you define initially? At which point are you calling getScreenBounds()?

Hi
Thanks for the reply. I was using a child component (a screen bounds variable) set in the main editor resize. In a basic Juce app, I think the following code shows that getScreenBounds is not initialised properly before the startup resize. GetScreenBounds is initialised after the startup resize. PS. I have worked around this, but should this be the expected behaviour.
Thanks

MainComponent::MainComponent()    
{    
    setSize (600, 400);    
}    
MainComponent::~MainComponent(){}    
void MainComponent::paint (Graphics& g)    
{      
    g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId));    
    g.setFont (Font (16.0f));    
    g.setColour (Colours::white);    
    g.drawText ("Hello World!", getLocalBounds(), Justification::centred, true);    
}    
void MainComponent::resized()    
{    
    DBG("x"<<getScreenBounds().getX());    
    DBG("y"<<getScreenBounds().getY());    
    DBG("width"<<getScreenBounds().getWidth());    
    DBG("heigth"<<getScreenBounds().getHeight());    
}