Bug report: Native scrolling hide inputs behind keyboard

Developer
Size
4,099 Kb
Views
6,072

How do I make an bug report: native scrolling hide inputs behind keyboard?

Demo showing how inputs stay behind keyboard. What is a bug report: native scrolling hide inputs behind keyboard? How do you make a bug report: native scrolling hide inputs behind keyboard? This script and codes were developed by Felquis on 08 December 2022, Thursday.

Bug report: Native scrolling hide inputs behind keyboard Previews

Bug report: Native scrolling hide inputs behind keyboard - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>bug report: Native scrolling hide inputs behind keyboard</title> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html ng-app="ionicApp"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>Tabs Example</title> <link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"> <script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script> </head> <body> <ion-nav-bar class="bar-positive"> <ion-nav-back-button class="button-icon ion-arrow-left-c"> </ion-nav-back-button> </ion-nav-bar> <ion-nav-view></ion-nav-view> <script id="templates/tabs.html" type="text/ng-template"> <ion-tabs class="tabs-icon-top tabs-positive"> <ion-tab title="Home" icon="ion-home" href="#/tab/home"> <ion-nav-view name="home-tab"></ion-nav-view> </ion-tab> <ion-tab title="About" icon="ion-ios-information" href="#/tab/about"> <ion-nav-view name="about-tab"></ion-nav-view> </ion-tab> <ion-tab title="Contact" icon="ion-ios-world" ui-sref="tabs.contact"> <ion-nav-view name="contact-tab"></ion-nav-view> </ion-tab> </ion-tabs> </script> <script id="templates/home.html" type="text/ng-template"> <ion-view view-title="Home"> <ion-content class="padding"> <!-- <a class="button icon icon-right ion-chevron-right" href="#/tab/facts">Scientific Facts</a> --> <div class="list"> <div class="item item-thumbnail-left full-width" ng-repeat="item in feed track by $index" ui-sref="tabs.facts"> <img ng-src="{{ item.user.picture.medium }}" /> <h2>{{ $index }} - {{ item.user.name.first }} {{ item.user.name.last }}</h2> <p>@{{ item.user.username }}</p> </div> </div> <ion-infinite-scroll icon="ion-loading-c" on-infinite="loadMoreData()"> </ion-infinite-scroll> </ion-content> </ion-view> </script> <script id="templates/facts.html" type="text/ng-template"> <ion-view view-title="Facts"> <ion-content class="padding"> <p> <span class="button icon icon-right ion-chevron-right" ng-click="openModal()">Open modal</span> </p> <div class="list"> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 1</span> <input type="text" placeholder="Text Field 1"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 2</span> <input type="text" placeholder="Text Field 2"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 3</span> <input type="text" placeholder="Text Field 3"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 3</span> <input type="text" placeholder="Text Field 3"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 4</span> <input type="text" placeholder="Text Field 4"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 5</span> <input type="text" placeholder="Text Field 5"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 6</span> <input type="text" placeholder="Text Field 6"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 7</span> <input type="text" placeholder="Text Field 7"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 8</span> <input type="text" placeholder="Text Field 8"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 9</span> <input type="text" placeholder="Text Field 9"> </label> <label class="item item-input item-floating-label"> <span class="input-label">Text Field 10</span> <input type="text" placeholder="Text Field 10"> </label> </div> </ion-content> </ion-view> </script> <script id="my-modal.html" type="text/ng-template"> <ion-modal-view> <ion-header-bar> <h1 class="title">My Modal title</h1> </ion-header-bar> <ion-content> <span class="button icon icon-right ion-chevron-right" ng-click="closeModal()">Hide modal</span> </ion-content> </ion-modal-view> </script> <script id="templates/facts2.html" type="text/ng-template"> <ion-view view-title="Also Factual"> <ion-content class="padding"> <p>111,111,111 x 111,111,111 = 12,345,678,987,654,321</p> <p>1 in every 4 Americans has appeared on T.V.</p> <p>11% of the world is left-handed.</p> <p>1 in 8 Americans has worked at a McDonalds restaurant.</p> <p>$283,200 is the absolute highest amount of money you can win on Jeopardy.</p> <p>101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie.</p> <p> <a class="button icon ion-home" href="#/tab/home"> Home</a> <a class="button icon ion-chevron-left" href="#/tab/facts"> Scientific Facts</a> </p> </ion-content> </ion-view> </script> <script id="templates/about.html" type="text/ng-template"> <ion-view view-title="About"> <ion-content class="padding"> <h3>Create hybrid mobile apps with the web technologies you love.</h3> <p>Free and open source, Ionic offers a library of mobile-optimized HTML, CSS and JS components for building highly interactive apps.</p> <p>Built with Sass and optimized for AngularJS.</p> <p> <a class="button icon icon-right ion-chevron-right" href="#/tab/navstack">Tabs Nav Stack</a> </p> </ion-content> </ion-view> </script> <script id="templates/nav-stack.html" type="text/ng-template"> <ion-view view-title="Tab Nav Stack"> <ion-content class="padding"> <p><img src="https://ionicframework.com/img/diagrams/tabs-nav-stack.png" style="width:100%"></p> </ion-content> </ion-view> </script> <script id="templates/contact.html" type="text/ng-template"> <ion-view title="Contact"> <ion-content> <div class="list"> <div class="item"> @IonicFramework </div> <div class="item"> @DriftyTeam </div> </div> </ion-content> </ion-view> </script> </body>
</html> <script src="js/index.js"></script>
</body>
</html>

Bug report: Native scrolling hide inputs behind keyboard - Script Codes CSS Codes

.full-width { width: 100%;
}

Bug report: Native scrolling hide inputs behind keyboard - Script Codes JS Codes

angular.module('ionicApp', ['ionic'])
.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) { if(!ionic.Platform.isIOS())$ionicConfigProvider.scrolling.jsScrolling(false); $stateProvider .state('tabs', { url: "/tab", abstract: true, templateUrl: "templates/tabs.html" }) .state('tabs.home', { url: "/home", views: { 'home-tab': { templateUrl: "templates/home.html", controller: 'HomeTabCtrl' } } }) .state('tabs.facts', { url: "/facts", views: { 'home-tab': { templateUrl: "templates/facts.html", controller: 'FactsTabCtrl' } } }) .state('tabs.facts2', { url: "/facts2", views: { 'home-tab': { templateUrl: "templates/facts2.html", controller: 'Facts2TabCtrl' } } }) .state('tabs.about', { url: "/about", views: { 'about-tab': { templateUrl: "templates/about.html", controller: 'AboutTabCtrl' } } }) .state('tabs.navstack', { url: "/navstack", views: { 'about-tab': { templateUrl: "templates/nav-stack.html", controller: 'NavTabCtrl' } } }) .state('tabs.contact', { url: "/contact", views: { 'contact-tab': { templateUrl: "templates/contact.html", controller: 'ContactTabCtrl' } } }); $urlRouterProvider.otherwise("/tab/home");
})
.controller('HomeTabCtrl', function($scope, $randomUser) { $scope.loadMoreData = function () {	$randomUser.get().then(function (data) { $scope.feed = $scope.feed.concat(data.slice(0, 10)); $scope.$broadcast('scroll.infiniteScrollComplete'); }, function () { $scope.$broadcast('scroll.infiniteScrollComplete'); }); }; $randomUser.get().then(function (data) {	$scope.feed = data; });
})
.controller('FactsTabCtrl', function($scope, $randomUser, $ionicModal) { $randomUser.get().then(function (data) {	$scope.feed = data; }); $ionicModal.fromTemplateUrl('my-modal.html', { scope: $scope, animation: 'slide-in-up' }).then(function(modal) { $scope.modal = modal; }); $scope.openModal = function() { $scope.modal.show(); }; $scope.closeModal = function() { $scope.modal.hide(); };
})
.controller('Facts2TabCtrl', function($scope, $randomUser) { $randomUser.get().then(function (data) {	$scope.feed = data; }); console.log('Facts2TabCtrl');
})
.controller('AboutTabCtrl', function($scope, $randomUser) { $randomUser.get().then(function (data) {	$scope.feed = data; }); console.log('AboutTabCtrl');
})
.controller('ContactTabCtrl', function($scope, $randomUser) { $randomUser.get().then(function (data) {	$scope.feed = data; }); console.log('ContactTabCtrl');
})
.controller('NavTabCtrl', function($scope, $randomUser) { $randomUser.get().then(function (data) {	$scope.feed = data; }); console.log('NavTabCtrl');
})
/*** Get data from randomuser.me and save it on localStorage http://randomuser.me/
***/
.service('$randomUser', function ($q, $http) {	var randomuserMe = angular.fromJson(localStorage.randomuserMe) || {} randomuserMe = randomuserMe.results || []; return { get: function () { var deferred = $q.defer(); if (randomuserMe.length > 0) { deferred.resolve(randomuserMe); return deferred.promise; } $http({ method: 'get', url: 'http://api.randomuser.me/?lego&results=40' // 40 is the max }).success(function (data) { localStorage.randomuserMe = angular.toJson(data); deferred.resolve(data.results); }).error(function (error) { deferred.reject(error); }); return deferred.promise; } }
});
Bug report: Native scrolling hide inputs behind keyboard - Script Codes
Bug report: Native scrolling hide inputs behind keyboard - Script Codes
Home Page Home
Developer Felquis
Username felquis
Uploaded December 08, 2022
Rating 3
Size 4,099 Kb
Views 6,072
Do you need developer help for Bug report: Native scrolling hide inputs behind keyboard?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Felquis (felquis) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!