Inconsistency between Designer and Runtime

0
0

(I’ve had this issue the whole time I’ve been using WiseJ, but I’ve just chalked it up to being intended/not fixable.

According to other threads on here that is supposedly not a normal thing.

AutoSize is disabled. Most elements are docked. Many many many sizing inconsistencies.

Tested with Chrome, Vivaldi, and Firefox. All of them are consistent with each other, but not with what is shown in the designer.

I have had to make elements a lot bigger in the designer so that they are visible in the runtime program.

I tried example WiseJ applications a few months ago and had the same inconsistencies with them which is why I didn’t think much of it.

 

Visual demonstration of issues (https://img.x3rt.dev/view/cIQd0Z.png manually open it in your browser because for some reason it’s not embedding)

  • You must to post comments
0
0

When run via windows instead of a linux docker container the sizing is accurate to the designer.
Not sure how font sizes would affect something like a ProgressBar element and make it less than 1/4 of its size in the designer.

I am not using any custom fonts or themes, just the default ones.

Also the the batch script just runs docker build and docker start

docker build -f src\Dockerfile . -t wisej-test && docker run -p 8080:8080 --rm --name "wisej-test" wisej-test

  • You must to post comments
0
0

Hi there,

We can not accept any test case that has to rely on a batch script to run.
According to our guidelines, you’re required to provide a runnable Visual Studio compilable sample.

It would be great if you can provide us with that.

On the other hand, running on Linux, means that you’re using LibGdiPlus, which is not perfect in terms of providing accurate font measurements, make sure that you also have the font installed if you’re using a custom font in your theme.

Sadly, we can’t look at this issue without an appropriate sample!

Thank you for your understanding,
Alaa

  • You must to post comments
0
0

Anything else I can provide? Hope the project I attached is enough

  • You must to post comments
0
0

I’ve attached a rushed project reproducing the same issue below.

Please edit src/start.bat and make the path point to where you extracted the zip archive. (the folder which contains the src directory)

Docker Engine has to be running. I have only ever tried deploying to docker so I am not sure if the project even runs on anything other than that – which is why I ask you to please try and run it via docker with the included script.

 

  • You must to post comments
0
0

Please send us a reproducible test case and we’ll investigate.
You can post it here or send to supportATwisej.com

Best regards
Frank

  • You must to post comments
0
0

I am using the same theme. No matter which theme I use the result is the same (as in that the designer and runtime look very different)

For example here is what the default Clear-3 theme looks like in both the Designer and the Default.json

Attachment
  • You must to post comments
0
0

Hi,

this is most likely caused by using different themes in the designer and “at runtime”.

Please make sure that the theme you are using in the Designer (see lower left corner in the Designer toolbar)
is the same you set up at runtime. (either in web.config or in default.json).

Find more information here:

https://docs.wisej.com/docs/concepts/theming#changing-themes

Best regards
Frank

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.