• Resolved varlot

    (@varlot)


    Hi Hakan,

    I would like to change the position where the app scrolls to after the customer chooses date and time.

    Where can I find settings for that? I really tried to find it but as my knowledge od JS and php is limited I’m probably missing something pretty obvious.

    Thank you in advance,
    Varlot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hakan Ozevin

    (@puckrobin)

    After time is selected, cursor is moved to the first field and window is scrolled to 200px from window top position.

    You can change scroll offset from window top:

    /**
    * Change scroll offset from window top in px (Default: 200)
    */
    add_filter( 'app_js_data', 'app_js_data' );
    function app_js_data( $param ) {
        $param['offset'] = 500;
        return $param;
    }

    Cheers,
    Hakan

    Thread Starter varlot

    (@varlot)

    Hakan,

    thank you. ?? Works like a charm.

    Best regards,
    Varlot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto scroll after selecting date and time’ is closed to new replies.