fixed use parent as containment; applied position update when the window is changed;