NetTalk Central

Author Topic: conditionally set width of form  (Read 2614 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
conditionally set width of form
« on: June 21, 2014, 09:50:41 PM »
Bruce,
     I have three tabs on a form.  The second tab has fields and an image to the right.  This is the app you helped me with on the newsgroup.  The form width is set at 950 px, so the fields and image display on tab 2.  However, this leaves significant white space to the right on tabs 1 and 3.  Is there a way to set the width to say 500 when tab 1 or 3 is selected but then set the width to 950 when tab 2 is selected?

Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: conditionally set width of form
« Reply #1 on: June 22, 2014, 10:22:06 PM »
Hi Jeff,

can it be done? yes.
but it would take a bit of JavaScript effort, and (frankly) I wouldn't do it because at some point in the future you'll want the more space on the other tabs, and you'll need to change the code for that.

It's do'able, but frankly I don't think it's necessary - or worth the effort - and indeed may be quite jarring as you change tabs...

cheers
Bruce