Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70746

How to set scrollAssist in single page?

$
0
0

@gulullu wrote:

Hey there! I want to disable scrollAssist in single page, the code is :slight_smile:

	ionViewWillEnter() {
		super.ionViewWillEnter();

		this.config.set('scrollAssist', false);
		this.config.set('scrollPadding', false);
		this.config.set('autoFocusAssist', false);
		console.log(this.config.get('scrollAssist'));

	}

	ionViewWillLeave() {
		super.ionViewWillLeave();
		this.config.set('scrollAssist', true);
		this.config.set('scrollPadding', true);
		this.config.set('autoFocusAssist', true);
		console.log(this.config.get('scrollAssist'));
	}

Now the value is false when ionViewWillEnter, but the page scroll up when keyboard show, so how to disable this “scroll up”, please help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>