In our application with WiseJ and PPJ, text boxes are suddenly rescaled and no longer correspond to the sizes set in the Designer.
Previously, the text boxes were always set to a height of 24px and were displayed as such.
Now the text boxes are scaled to 36px in the Designer or in the running application within a TabPage. In the *.Designer.cs, however, the correct size of 24px is still displayed.
Outside the TabPage, these are scaled up less, e.g. to 27px.
The interesting thing here is that it behaves differently for different developers and testers. However, the environments are the same everywhere:
WiseJ 3.5.15
PPJ 4.9.15
Sometimes the application looks correct, sometimes we have this scaling in VS Designer, MS Edge or Firefox.
Do you have any idea why this might be?
Thanks in advance for your help.
Patrick
1. I have created the attached project. I had my designer in the “Bootstrap-4” theme
When running the application, it looks as expected. Changing the theme via the button to “Vista-2” also works without any problems.
2) I change the theme in the Designer to “Vista-2” and save. Various properties in Window1.Designer.cs are now changed in the background.
When I run the program, everything still looks as expected. Switching via the button also works.
3. I change the property “Font” of Window1 via the Designer to “Theme Fonts -> default”. This corresponds exactly to the value that was previously displayed as the default. (@default; 8pt; Regular)
This adds the following line to Window1.Designer.cs
this.Font = new System.Drawing.Font(“@default”, 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
When I run the application now, my fields are suddenly completely shifted (regardless of the theme).
In the Designer, everything looks exactly the same as before.
In debugging, you can see that the size of the fields is changed at exactly the point where the “Font” property is set.
We have not currently changed the font in our productive application, but according to the GIT repository, this line has already existed for a long time. However, the behavior is the same as in my example. It has not occurred before and has only been occurring for a few days.
Can you please provide a reproducible testcase? Delete the bin and obj folders before posting.
I am a co-developer of this solution. What I have just found out is that if you press the Edge button at the bottom right of the Designer and switch to IE, the masks in the Designer are displayed correctly again. At least for a certain time.
Please login first to submit.