Jump to content

ips.ui.sticky on mobile devices


Outlaw213

Recommended Posts

Quote

disableIn
(String; optional)

Sticky behavior is often not desired on mobile devices. This option allows you to disable sticky behavior when responsiveness is enabled and the device is currently using one of the viewport keys specified in this option, e.g. phone or tablet.

By default disableIn value is phone

You can override it

<div id='elWrapper'>
	<div id='elStickyElement' data-ipsSticky data-ipsSticky-disableIn='coffee_maker'>
		...
	</div>
</div>

 

Link to comment
Share on other sites

3 minutes ago, newbie LAC said:

By default disableIn value is phone

You can override it


<div id='elWrapper'>
	<div id='elStickyElement' data-ipsSticky data-ipsSticky-disableIn='coffee_maker'>
		...
	</div>
</div>

 

Amazing! Thank you! ?

I was using the disableIn incorrectly. I had it set to:

<div id='elWrapper'>
	<div id='elStickyElement' data-ipsSticky disableIn='none'>
	</div>
</div>

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...