Skip to content

janhar/jarvus-touch-fieldscroller

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jarvus-touch-fieldscroller

Monitors for field focus events and viewport resizes, ensuring that whatever scrollable container a field is within gets scrolled to make the focused field visible after a screen size change (or soft keyboard opening.)

Installation

Just clone into your workspace's packages directory and add "jarvus-touch-fieldscroller" to the "requires" array of your Sencha Touch app's app.json file.

Configuration

This override has one configuration option that can be set in your viewport configuration to adjust how many pixels of space it tries to create below the focused field. The padding should make it easy for the user to see and tap on the next field.

Ext.application({
    name: 'MyTouchApp',

    viewport: {
        fieldFocusPadding: 10 // reduce focus padding from the default of 40
    }
    
    // ...
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%