mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(keyboardAttach): fix jshint errors
This commit is contained in:
12
js/angular/directive/keyboardAttach.js
vendored
12
js/angular/directive/keyboardAttach.js
vendored
@@ -34,20 +34,22 @@ IonicModule
|
||||
if ( scrollCtrl ) {
|
||||
scrollCtrl.scrollView.__container.style.bottom = keyboardHeight + keyboardAttachGetClientHeight(element[0]) + "px";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function onHide() {
|
||||
element.css('bottom', '');
|
||||
if ( scrollCtrl ) {
|
||||
if ( scrollCtrl ) {
|
||||
scrollCtrl.scrollView.__container.style.bottom = '';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
scope.$on('$destroy', function() {
|
||||
window.removeEventListener('native.showkeyboard', onShow);
|
||||
window.removeEventListener('native.hidekeyboard', onHide);
|
||||
});
|
||||
};
|
||||
})
|
||||
});
|
||||
|
||||
function keyboardAttachGetClientHeight(element) { return element.clientHeight }
|
||||
function keyboardAttachGetClientHeight(element) {
|
||||
return element.clientHeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user