1 Reply Latest reply on Jul 8, 2014 7:09 AM by Jon Tara

    Set the numeric keypad and set footer at bottom when keypad open.

    WAN NOR AINIE W MUHAMAD

      Hye all,

       

      I have 2 questions,

       

      1) How to trigger numeric keypad for input?

       

      2) How to set the footer at the bottom when the virtual keypad is open?

        • Re: Set the numeric keypad and set footer at bottom when keypad open.
          Jon Tara

          I would first ask myself why I *want* a footer at the bottom when the virtual keypad is open.

           

          You have minimal screen real-estate when the keyboard is open. I wouldn't waste it on a footer.

           

          This will be difficult, because mobile browsers try to center the current field in the minimal available space. You will be fighting the browser. I've fought that battle, and it is epic!

           

          I've managed to wrest control from the browser and make the virtual keyboard play nice with iScroll by writing a Rhodes native extension.

           

          But I wouldn't tempt fate by also trying to maintain a footer with the virtual keyboard present!

           

          (Actually, I think it would work, but, then, I get back to the "why" question...)

           

          I think you need to take control of the browser's scrolling of the underlying view. That needs a native extension, and has to be written for each platform (iOS, Android, etc.) Though this is a bigger problem for iOS I think.