NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on February 18, 2013, 03:42:32 PM

Title: Mobile Question
Post by: osquiabro on February 18, 2013, 03:42:32 PM
hi , i have a problem with mobile setting, i check a vertical setting in form but only work with desktop no for mobile..
Title: Re: Mobile Question
Post by: osquiabro on February 20, 2013, 02:33:46 AM
any idea for this???
Title: Re: Mobile Question
Post by: Bruce on February 20, 2013, 03:14:15 AM
any chance you can post an example?
Title: Re: Mobile Question
Post by: osquiabro on February 20, 2013, 04:15:55 AM
see attach..

[attachment deleted by admin]
Title: Re: Mobile Question
Post by: Bruce on February 20, 2013, 07:30:27 AM
Hi Osquiabro,

ok, I see what's happening. The way Mobile fields are generated is slightly different to desktop fields, and this effectively negates the "vertical" setting. There is however a fix;

Version 7.05 and earlier;

a) Create a custom css file in your styles folder. Let's call it
CustomMobile.Css
In this file put

.nt-prompt{
float:none;
}


b) Add this file to the files list -
WebServer Procedure / Settings / Styles / Files / Css Style Files /
Tick "Mobile" on, but "Desktop" off, so it's only included in the mobile version.

That should solve the problem.

cheers
Bruce

Title: Re: Mobile Question
Post by: osquiabro on February 20, 2013, 04:21:19 PM
thanks work,

but another question is possible to chance this setting in runtime? i need the form vertical in mobile mode and  horizontal in desktop..
Title: Re: Mobile Question
Post by: kevin plummer on February 20, 2013, 04:43:24 PM
As per Bruce's post, there should be an option to Tick "Mobile" on and "Desktop" off for that css file, so it's only included in the mobile version.
Title: Re: Mobile Question
Post by: Bruce on February 20, 2013, 09:29:41 PM
yes, if you tick it _off_ in the app, but add the CSS in mobile mode, then it should do what you want.

cheers
Bruce
Title: Re: Mobile Question
Post by: osquiabro on February 21, 2013, 02:10:40 AM
ok, sorry the problem occurs when use Span Columns in a form, the fields not aligned in desktop mode,
but if use css for mobile with desktop the aligned is correct.

see the attachment..

[attachment deleted by admin]
Title: Re: Mobile Question
Post by: Bruce on February 21, 2013, 02:29:35 AM
Span columns is a different setting completely, and performs a different job.
And yes, it'll change the alignment of the fields in desktop mode (that's what it does).
What are you trying to use it for?

cheers
Bruce