Page 1 of 1

Model shrinks but does not grow on window resize

Posted: Tue Dec 21, 2021 7:32 pm
by aarond
When resizing a window smaller the model shrinks to accommodate the resize, however when the window is resized larger the model does not grow. This causes the model to shrink smaller and smaller when the window is repeatedly resized.

I was able to reproduce this behavior using the DIView Sample on the latest build of DG Kernel 6.2

Re: Model shrinks but does not grow on window resize

Posted: Thu Dec 23, 2021 10:27 am
by nickz
You have a point, Aaron.
We are looking into it
Thank you

Re: Model shrinks but does not grow on window resize

Posted: Wed Dec 29, 2021 8:00 am
by nickz
Aaron, please check out today's 6.2.5296 update. We have made an improvement in the algorithm.

It is not official, as it is not tested properly and some apps may rely on the current behavior. To enable the new change please add iContext.SetBoolParam(24, false); like

Code: Select all

            var iView = m_kernCAD.GetView() as IView_DG;
            var iContext = iView as IKCContext;
            iContext.SetBoolParam(24, false);
somewhere on the start.
This is an undocumented parameter for v6.2. The default it true.
If it works OK for you, we will merge it to v7.0 as well.
On the main development branch it will be the default, if we do not encounter any problems with it. So the expectation is that the iContext.SetBoolParam(24, false); will net be needed in v7.1

Thanks for reporting

Re: Model shrinks but does not grow on window resize

Posted: Wed Dec 29, 2021 11:40 pm
by aarond
Thanks Nick, this is much improved. I can still get the behavior when I resize repeatedly using our models, but it shrinks at a much lower rate so it is a big improvement over the previous build. I didn't encounter any issues when doing a quick test.

Re: Model shrinks but does not grow on window resize

Posted: Fri Jan 14, 2022 4:39 pm
by aarond
Hi Nick, it looks like the 6.2 merge module did not get updated on the downloads page to contain this fix.

Re: Model shrinks but does not grow on window resize

Posted: Mon Jan 17, 2022 9:49 am
by nickz
Sorry, Aaron,
We had to change code signing service and it was fiddly. This is where the bug came from.
Today's 5297 update should work: Downloads.
Thanks for reporting