NetTalk Central

Author Topic: Mobile Question  (Read 4937 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Mobile Question
« 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..

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Mobile Question
« Reply #1 on: February 20, 2013, 02:33:46 AM »
any idea for this???

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile Question
« Reply #2 on: February 20, 2013, 03:14:15 AM »
any chance you can post an example?

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Mobile Question
« Reply #3 on: February 20, 2013, 04:15:55 AM »
see attach..

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile Question
« Reply #4 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


osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Mobile Question
« Reply #5 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..

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Mobile Question
« Reply #6 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile Question
« Reply #7 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

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Mobile Question
« Reply #8 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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile Question
« Reply #9 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