Window not loading completely?

I have a windows that (On first time loading does not load completely.)

But everytime it is loaded there after works as expected?

I never did figure out the problem, so I just deleted the whole window and created it again from scratch and everything works now as it should.