Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Changes in builder not reflected in preview

Hello,

I have weird styling problem. Somehow I am unable to change font size of one of the labels in my app. In the Appery builder size is set to 22px, but when I open the app in web preview the size is incorrect.

This is what I see in web preview:

Image

and this is the Appery builder view:

Image

I checked the source css generated by Appery and this is the part responsible for styling of the label in question

/* ArtEqC */
.ViewList_ArtEqC {
font-weight: normal; text-align: center; font-size: 16px;
margin: 0px 0px 0px 0px;
word-wrap: break-word;

It is somehow related with the label name. Once I change the name to anything else the styling is applied and the size is displayed correctly. Looks like the builder keeps that old name somewhere and generates the css regardless on what is actually in the app project.

Tried to flush browser cache, undo all source changes, refresh etc. Nothing helped.

Can you please help me? I would like to avoid changing source css to fix it.

My app is shared with the support (3mamcukier).

Cheers,
Adam

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Changes in builder not reflected in preview

Hi Adam.
We'll take a look.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Changes in builder not reflected in preview

Adam,

Did you change source files?
Please undo all changes: http://docs.appery.io/tutorials/sourc...

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Changes in builder not reflected in preview

No Katya. As I wrote I tried to undo all source changes (just to be sure).

Here is my source tree, as you can see no blue items indicating source modifications.

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Changes in builder not reflected in preview

Adam,

Please try cleaning cache, I see 22px font.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Changes in builder not reflected in preview

Hi Katya,

Do you mean browser's cache? I already did this. I also tried to open it via Firefox (fresh install). Here is what I see:

Image

Also Appery tester on iOS shows 16px instead of 22px.

Any ideas?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Changes in builder not reflected in preview

Adam,

This is pretty strange. Please rename or add custom CSS. Let us know if this helps.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Changes in builder not reflected in preview

Yes. I agree. Once I saw it I immediately know it is not going to be easy...
Thanks anyway. I will follow your advice.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

Changes in builder not reflected in preview

The problem was related to elements naming. Somehow Appery builder let me create two elements with exactly the same name on the same page. Normally it warns you that names are identical and will not let you proceed with name changing. But in my case the second element was created via custom component which was then broken apart and the second name landed on the page...
After renaming problem was gone.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Changes in builder not reflected in preview

Hello! Thank you for update! We'll test it more.

Return to “Issues”