{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3537","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3537/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3537/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3537/events","html_url":"https://github.com/driftyco/ionic/issues/3537","id":68971129,"number":3537,"title":"bug: Keyboard-attach footer-bar animation","user":{"login":"Xavierh95","id":7370867,"avatar_url":"https://avatars.githubusercontent.com/u/7370867?v=3","gravatar_id":"","url":"https://api.github.com/users/Xavierh95","html_url":"https://github.com/Xavierh95","followers_url":"https://api.github.com/users/Xavierh95/followers","following_url":"https://api.github.com/users/Xavierh95/following{/other_user}","gists_url":"https://api.github.com/users/Xavierh95/gists{/gist_id}","starred_url":"https://api.github.com/users/Xavierh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xavierh95/subscriptions","organizations_url":"https://api.github.com/users/Xavierh95/orgs","repos_url":"https://api.github.com/users/Xavierh95/repos","events_url":"https://api.github.com/users/Xavierh95/events{/privacy}","received_events_url":"https://api.github.com/users/Xavierh95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tlancina","id":804331,"avatar_url":"https://avatars.githubusercontent.com/u/804331?v=3","gravatar_id":"","url":"https://api.github.com/users/tlancina","html_url":"https://github.com/tlancina","followers_url":"https://api.github.com/users/tlancina/followers","following_url":"https://api.github.com/users/tlancina/following{/other_user}","gists_url":"https://api.github.com/users/tlancina/gists{/gist_id}","starred_url":"https://api.github.com/users/tlancina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlancina/subscriptions","organizations_url":"https://api.github.com/users/tlancina/orgs","repos_url":"https://api.github.com/users/tlancina/repos","events_url":"https://api.github.com/users/tlancina/events{/privacy}","received_events_url":"https://api.github.com/users/tlancina/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-16T17:26:38Z","updated_at":"2015-04-20T06:12:13Z","closed_at":null,"body":"**Type**: <span ionic-type>bug</span>\n\n**Platform**: <span ionic-platform>all</span>  \n\n<span ionic-description>Hi,\r\nI have an issue with the keyboard-attach directive on a ion-footer-bar\r\nI'm using Ionic 1.0.0-rc.2 and ionic keyboard plugin.\r\n\r\nWhen I click on an input inside this ion-footer-bar, the keyboard is correctly opened and the footer is on the top of the keyboard.\r\nBut during the transition (opening or closing), the ion-footer-bar is not following the keyboard.\r\n\r\nI look into the Ionic bundle.js and I see the following code : \r\n```javascript\r\nIonicModule\r\n.directive('keyboardAttach', function() {\r\n  return function(scope, element, attrs) {\r\n    ionic.on('native.keyboardshow', onShow, window);\r\n    ionic.on('native.keyboardhide', onHide, window);\r\n\r\n    //deprecated\r\n    ionic.on('native.showkeyboard', onShow, window);\r\n    ionic.on('native.hidekeyboard', onHide, window);\r\n\r\n\r\n    var scrollCtrl;\r\n\r\n    function onShow(e) {\r\n      if (ionic.Platform.isAndroid() && !ionic.Platform.isFullScreen) {\r\n        return;\r\n      }\r\n\r\n      //for testing\r\n      var keyboardHeight = e.keyboardHeight || e.detail.keyboardHeight;\r\n      element.css('bottom', keyboardHeight + \"px\");\r\n      scrollCtrl = element.controller('$ionicScroll');\r\n      if (scrollCtrl) {\r\n        scrollCtrl.scrollView.__container.style.bottom = keyboardHeight + keyboardAttachGetClientHeight(element[0]) + \"px\";\r\n      }\r\n    }\r\n\r\n   ....\r\n```\r\n\r\nThe position of the bar is set without animation and the result is really not smooth / nice for the final user.\r\n\r\nYou can see the result in the following link : https://vimeo.com/125166338\r\n\r\nMoreover, as you can see in this video, the scrollview is not scrolled with the opening of the keyboard but after the opening.\r\n\r\nCan you help me regarding this issue ?\r\n\r\nBest regards,</span>\n\n<span is-issue-template></span>\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/94366821","html_url":"https://github.com/driftyco/ionic/issues/3537#issuecomment-94366821","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/3537","id":94366821,"user":{"login":"Xavierh95","id":7370867,"avatar_url":"https://avatars.githubusercontent.com/u/7370867?v=3","gravatar_id":"","url":"https://api.github.com/users/Xavierh95","html_url":"https://github.com/Xavierh95","followers_url":"https://api.github.com/users/Xavierh95/followers","following_url":"https://api.github.com/users/Xavierh95/following{/other_user}","gists_url":"https://api.github.com/users/Xavierh95/gists{/gist_id}","starred_url":"https://api.github.com/users/Xavierh95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xavierh95/subscriptions","organizations_url":"https://api.github.com/users/Xavierh95/orgs","repos_url":"https://api.github.com/users/Xavierh95/repos","events_url":"https://api.github.com/users/Xavierh95/events{/privacy}","received_events_url":"https://api.github.com/users/Xavierh95/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T06:12:13Z","updated_at":"2015-04-20T06:12:13Z","body":"Hi, Thanks to your answer !\r\nActually, I'm an iOS Developer so I have access to xCode. \r\nI will try this but why it might crash occasionally ?"}}