I don't know why it does that, but there's a workaround by clicking Ok and then rebuilding Lazarus through the GUI.
The issue is with Cocoa implementation of graphics functions. More specifically - clipping area.