Page 1 of 1

Center App on Screen (Solved)

PostPosted: Thu Jan 22, 2015 1:31 am
by luishp
Congratulations Dave!!!! This software have a really great potential. I am really shocked!!

I have been playing around and do not see how to center the app on screen, as it should be really easy with CSS styling i suggest to include it as an option on App Properties. On the Calculator sample that could be accomplished by editing on the compiled app the file style.css:

Code: Select all
#Main{width:320px;height:480px;margin:auto;position:absolute;top:0px;left:0px;bottom:0px;right:0px}


I have try to add the line on App Properties -> Styles. It'works, but objects in design mode don't appear anymore (using WindowsXP).

Best regards to all NeoAppbuilder users :D

Luis.

Re: Center App on Screen (Solved)

PostPosted: Thu Jan 22, 2015 2:40 am
by luishp
It works even better styling the body directly on App Properties -> Styles:

Code: Select all
body{overflow:hidden;width:320px;height:480px;margin:auto;position:absolute;top:0px;left:0px;right:0px;bottom:0px;}


Regards.

Re: Center App on Screen (Solved)

PostPosted: Thu Jan 22, 2015 11:33 am
by Neosoft Support
I have been playing around and do not see how to center the app on screen, as it should be really easy with CSS styling i suggest to include it as an option on App Properties.


Yes, that's a good idea.