B4J Question view position doesnt update after compile

cbal03

Member
Licensed User
Longtime User
I moved a labels position in the b4j designer, saved it and compiled the application.
The label refuses to appear in the new location.
I restarted the ide, renamed the .bjl file, deleted the .meta file, deleted the .bjl file/recompiled (runtime error of course)/restored the file/recompiled and anything else i could think of but the running program still loads the original layout of the file with the label in its original position. I searched the site for any clues as to what is happening without avail.
Also the 'Close' button view hasn't moved to its new location shown in the designer.
There haven't been any problems since I began creating this project.
I have attached a pic in case I haven't articulated this issue well enough.
I'm using b4j ver: 8.1 on win7 box.
Thanks for any help.

OOPS!
found this: https://www.b4x.com/android/forum/t...-how-to-update-canvas-position.61838/#content

Have you been editing the position of controls in the wrong variant ?
You have 3 variants in your design 600 x 600 , 1000 x 1000 and 1000 x 600.
Your app defines the screen as 1000 x 600


I hope this helps anyone else.
 

Attachments

  • Untitled.png
    Untitled.png
    82.7 KB · Views: 24

WebQuest

Active Member
Licensed User
Longtime User
I,
It may depend on the screen resolution and any anchoring. Make the label free and position it in the centre. then recalculate the position.
 
Upvote 0
Top