mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
ignore keyboard-attach if Android and not fullscreen
This commit is contained in:
8
js/angular/directive/keyboardAttach.js
vendored
8
js/angular/directive/keyboardAttach.js
vendored
@@ -32,6 +32,10 @@ IonicModule
|
||||
var scrollCtrl;
|
||||
|
||||
function onShow(e) {
|
||||
if (ionic.Platform.isAndroid() && !ionic.Platform.isFullScreen) {
|
||||
return;
|
||||
}
|
||||
|
||||
//for testing
|
||||
var keyboardHeight = e.keyboardHeight || e.detail.keyboardHeight;
|
||||
element.css('bottom', keyboardHeight + "px");
|
||||
@@ -42,6 +46,10 @@ IonicModule
|
||||
}
|
||||
|
||||
function onHide() {
|
||||
if (ionic.Platform.isAndroid() && !ionic.Platform.isFullScreen) {
|
||||
return;
|
||||
}
|
||||
|
||||
element.css('bottom', '');
|
||||
if ( scrollCtrl ) {
|
||||
scrollCtrl.scrollView.__container.style.bottom = '';
|
||||
|
||||
Reference in New Issue
Block a user