I make a window that can be moved with the mouse, but when it is at the right or bottom side of the window it disappears. What am I doing wrong?
View save_view = parent_window->getView();
RectangleShape background;
background.setPosition(0, 0);
background.setSize(Vector2f(width, height));
background.setFillColor(fon_color);
background.setOutlineThickness(outlain_size);
background.setOutlineColor(border_color);
RectangleShape handl;
handl.setPosition(-outlain_size, -header_height);
handl.setSize(Vector2f(width + outlain_size*2, header_height));
handl.setFillColor(border_color);
View view = parent_window->getView();
view.setCenter(parent_window->getSize().x / 2 - x, parent_window->getSize().y / 2 - y);
parent_window->setView(view);
parent_window->draw(background);
parent_window->draw(handl);
parent_window->setView(save_view);