# How to prevent the ball to be streched to an ellipsoid when dragging the window.

**URL:** https://discourse.vtk.org/t/how-to-prevent-the-ball-to-be-streched-to-an-ellipsoid-when-dragging-the-window/7515
**Category:** Support
**Created:** [December 28, 2021, 9:05am UTC](https://discourse.vtk.org/t/how-to-prevent-the-ball-to-be-streched-to-an-ellipsoid-when-dragging-the-window/7515 "2021-12-28T09:05:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AlexLuya](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alexluya/32/4036_2.png) [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)
#### Post date: [December 28, 2021, 9:05am UTC](https://discourse.vtk.org/t/how-to-prevent-the-ball-to-be-streched-to-an-ellipsoid-when-dragging-the-window/7515/1 "2021-12-28T09:05:30Z")

</div>

As you can,when dragging the bottom edge of window,the ball becomes an ellipsoid

 ![555629579](https://discourse.vtk.org/uploads/default/original/2X/d/d6a19e29482d69f88370c099eef5980a5ea90649.jpeg)

After clicking the windows,it is restored as ball.

 ![2](https://discourse.vtk.org/uploads/default/original/2X/c/cbc526e0a101b143dc5b4181c86f81da0da9d8e6.png)

How to fix this issue?

---

<div class="post-metadata">

### Author: ![Joel\_Mckay](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joel_mckay/32/4443_2.png) [@Joel\_Mckay](https://discourse.vtk.org/u/Joel_Mckay)
#### Post date: [December 28, 2021, 1:18pm UTC](https://discourse.vtk.org/t/how-to-prevent-the-ball-to-be-streched-to-an-ellipsoid-when-dragging-the-window/7515/2 "2021-12-28T13:18:41Z")

</div>

It would help to know what you are doing by posting some sort of example. I am new to using libvtk, but would suggest you explicitly define your Camera etc. and dump the vtkCamera GetViewTransformMatrix() , vtkWindow-\>GetSize() and vtkWindow-\> GetActualSize() (“returns the size without multiplying with the tile scale”).

If the defined transform and tile scale are the same before/after the window resizes, than it is likely a Qt or driver related issue (in other libs like wxWindows I’ve seen similar implicit “stretch to fit” issues with software/opengl drivers/debuggers that do not handle the each platform specific environment the same way.)

Tip: developers can’t read minds, 😉 and posting screen caps along with a minimal example can help form a basis for a bug report, unit test, or documented platform compatibility issue (helps to include information like the OS, video driver setup, and lib version).

Cheers, =)  
J
