{"action":"opened","issue":{"url":"https://api.github.com/repos/lengziyu/noteBook/issues/1","repository_url":"https://api.github.com/repos/lengziyu/noteBook","labels_url":"https://api.github.com/repos/lengziyu/noteBook/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lengziyu/noteBook/issues/1/comments","events_url":"https://api.github.com/repos/lengziyu/noteBook/issues/1/events","html_url":"https://github.com/lengziyu/noteBook/issues/1","id":160327243,"number":1,"title":"安卓输入框被键盘遮挡问题。","user":{"login":"lengziyu","id":9267469,"avatar_url":"https://avatars.githubusercontent.com/u/9267469?v=3","gravatar_id":"","url":"https://api.github.com/users/lengziyu","html_url":"https://github.com/lengziyu","followers_url":"https://api.github.com/users/lengziyu/followers","following_url":"https://api.github.com/users/lengziyu/following{/other_user}","gists_url":"https://api.github.com/users/lengziyu/gists{/gist_id}","starred_url":"https://api.github.com/users/lengziyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lengziyu/subscriptions","organizations_url":"https://api.github.com/users/lengziyu/orgs","repos_url":"https://api.github.com/users/lengziyu/repos","events_url":"https://api.github.com/users/lengziyu/events{/privacy}","received_events_url":"https://api.github.com/users/lengziyu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-15T02:44:35Z","updated_at":"2016-06-15T02:44:35Z","closed_at":null,"body":"安卓输入框时，键盘此时遮盖了输入框，输入框并没有向上弹。\r\n\r\n尝试过用输入框触发`fcous`事件，把input样式属性设置为`postion:fixed`，当触发`blur`的时候则去掉。\r\n\r\n但是当用户直接操作关闭软键盘时，此时input还是处于`fcous`事件，还是悬浮在上面。\r\n\r\n这时又想到另外一个方法；来解决：弹出后，触发`resize`事件，检查当前窗口高度是否改变，如果改变就执行`blur`时的事件，但是测试过，只执行一次。\r\n\r\n继续检查代码，发现我用的 [sui](https://github.com/sdc-alibaba/SUI-Mobile)，`input`的外面被`.page-group，.page，.content`包住，而这些都设置了`postion:absolute`，同样，`body`也设置了绝对定位，还有`overflow:hidden`属性，把这些都设置为`position: static`，`body`设置为`overflow: inherit`，就可以啦。"}}
{"actor":{"display_login":"lengziyu"}}