iFrame Default Set to Scrolling=No, Any Reason not to Change This?

  • Profile Image
    gpcwebs
    Asked on September 01, 2011 at 11:31 AM

    I had 3 different people tell me that they were unable to view the submit button on the form. It is using an iFrame. One of them realized that he needed to reset his Browser (Firefox) fonts to a smaller size and he was then able to see the button. Since the iFrame is a fixed size, is there a reason why the default for scrolling is set to "no". Here is the code: frameborder="0" style="width:100%; height:2442px; border:none;" scrolling="no"

    The other 2 people who encountered problems were using Explorer. I was able to recreate the problem in both Firefox and IE8. If the text size in either browser is set to a very large size and is overriding the page fonts, then the entire form won't load because it is a fixed height form and scrolling is set to "no". I have reset scrolling to "yes" and it seems to resolve the issue. I wondered if there was a reason why you have the default set as "no".

  • Profile Image
    NeilVicente
    Answered on September 01, 2011 at 12:01 PM

    Good call! Default iFrame scrolling should be set to "Auto" so that when error messages appear or when the form takes up a space larger than the usual, the submit button and other fields above it won't be invisible when it gets pushed down.

    I will submit a ticket to have this rectified. This will definitely prevent more issues about forms getting cut off from arising.

    Your inputs are greatly appreciated. Thank you very much!


    Neil

  • Profile Image
    gpcwebs
    Answered on September 01, 2011 at 12:18 PM

    You are welcome and setting it to "auto" instead of "yes" is even better. Thanks for the quick response.

  • Profile Image
    aytekin
    Answered on September 03, 2011 at 03:27 PM

    I believe setting it to auto will start showing an unnecessary scroll bar on some browsers. Of course you are free to change it to auto in your version of the code.

  • Profile Image
    gpcwebs
    Answered on September 03, 2011 at 04:20 PM

    If the choice is between an unnecessary scroll bar on some browsers or some users not being able to finish the form or see the submit button, I'll take the unnecessary scroll bar, but thanks for the clarification.