[eGroupWare-svn] r55857 - /trunk/jdots/js/fw_mobile.js

[email protected]
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: hnategh
Date: Tue Apr 26 18:31:07 2016
New Revision: 55857

URL: http://svn.stylite.de/viewvc/egroupware?rev=55857&view=rev
Log:
Mobile theme:
- Implement auto scrollup on INPUT or SELECT elements focus, makes it easier to enter data when mobile keyboard popups up

Modified:
    trunk/jdots/js/fw_mobile.js

Modified: trunk/jdots/js/fw_mobile.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/jdots/js/fw_mobile.js?rev=55857&r1=55856&r2=55857&view=diff
==============================================================================
--- trunk/jdots/js/fw_mobile.js (original)
+++ trunk/jdots/js/fw_mobile.js Tue Apr 26 18:31:07 2016
@@ -188,6 +188,15 @@
 				//Remove the loading class
 				egw.loading_prompt('popup', false);
 				self.$iFrame.css({visibility:'visible'});
+
+				// Auto scrollup when select input or select
+				jQuery(popupWindow).on('resize', function(){
+				   if(popupWindow.document.activeElement.tagName == "INPUT" || popupWindow.document.activeElement.tagName == "SELECT"){
+					  popupWindow.setTimeout(function(){
+						 popupWindow.document.activeElement.scrollIntoViewIfNeeded(false);
+					  },0);
+				   }
+				});
 			});
 
 


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.