Close window at correct position to enable fire event
Add reset for crop region when dimension-type changed