Model shrinks but does not grow on window resize

Forum for reporting problems
Post Reply
aarond
Posts: 8
Joined: Mon May 17, 2021 4:23 pm

Model shrinks but does not grow on window resize

Post 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

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Model shrinks but does not grow on window resize

Post by nickz »

You have a point, Aaron.
We are looking into it
Thank you

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Model shrinks but does not grow on window resize

Post 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

aarond
Posts: 8
Joined: Mon May 17, 2021 4:23 pm

Re: Model shrinks but does not grow on window resize

Post 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.

aarond
Posts: 8
Joined: Mon May 17, 2021 4:23 pm

Re: Model shrinks but does not grow on window resize

Post by aarond »

Hi Nick, it looks like the 6.2 merge module did not get updated on the downloads page to contain this fix.

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Model shrinks but does not grow on window resize

Post 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

Post Reply