Source language: Translate to:

Center App on Screen (Solved)

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

Center App on Screen (Solved)

Postby luishp » Thu Jan 22, 2015 1:31 am

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.
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com
User avatar
luishp
 
Posts: 361
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Re: Center App on Screen (Solved)

Postby luishp » Thu Jan 22, 2015 2:40 am

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.
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com
User avatar
luishp
 
Posts: 361
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Re: Center App on Screen (Solved)

Postby Neosoft Support » Thu Jan 22, 2015 11:33 am

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.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron