{"action":"created","issue":{"url":"https://api.github.com/repos/daimajia/AndroidSwipeLayout/issues/237","labels_url":"https://api.github.com/repos/daimajia/AndroidSwipeLayout/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/daimajia/AndroidSwipeLayout/issues/237/comments","events_url":"https://api.github.com/repos/daimajia/AndroidSwipeLayout/issues/237/events","html_url":"https://github.com/daimajia/AndroidSwipeLayout/issues/237","id":111736535,"number":237,"title":"Pullout bug","user":{"login":"yoonyoungkim","id":8349133,"avatar_url":"https://avatars.githubusercontent.com/u/8349133?v=3","gravatar_id":"","url":"https://api.github.com/users/yoonyoungkim","html_url":"https://github.com/yoonyoungkim","followers_url":"https://api.github.com/users/yoonyoungkim/followers","following_url":"https://api.github.com/users/yoonyoungkim/following{/other_user}","gists_url":"https://api.github.com/users/yoonyoungkim/gists{/gist_id}","starred_url":"https://api.github.com/users/yoonyoungkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoonyoungkim/subscriptions","organizations_url":"https://api.github.com/users/yoonyoungkim/orgs","repos_url":"https://api.github.com/users/yoonyoungkim/repos","events_url":"https://api.github.com/users/yoonyoungkim/events{/privacy}","received_events_url":"https://api.github.com/users/yoonyoungkim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-16T00:52:48Z","updated_at":"2015-10-27T08:16:59Z","closed_at":null,"body":"First, Thank you for your help.\r\nIt has been helpful to you using your project.\r\nBy the way I find a bug.\r\nWhen I choose pullout mode, Leaving a space on the back of the list .\r\nI found out that SwipeLayout.java/layoutPullOut() have a problem.\r\nBut your library operate well, I tried it decompile.\r\n\r\n====\r\n    void layoutPullOut() {\r\n        // origin code\r\n        View surfaceView = getSurfaceView();\r\n        Rect surfaceRect = mViewBoundCache.get(surfaceView);\r\n        if (surfaceRect == null) surfaceRect = computeSurfaceLayoutArea(false);\r\n        if (surfaceView != null) {\r\n            surfaceView.layout(surfaceRect.left, surfaceRect.top, surfaceRect.right, surfaceRect.bottom);\r\n            bringChildToFront(surfaceView);\r\n        }\r\n        View currentBottomView = getCurrentBottomView();\r\n        Rect bottomViewRect = mViewBoundCache.get(currentBottomView);\r\n        if (bottomViewRect == null)\r\n            bottomViewRect = computeBottomLayoutAreaViaSurface(ShowMode.PullOut, surfaceRect);\r\n        if (currentBottomView != null) {\r\n            currentBottomView.layout(bottomViewRect.left, bottomViewRect.top, bottomViewRect.right, bottomViewRect.bottom);\r\n        }\r\n    }\r\n====\r\n    void layoutPullOut() {\r\n        // decompile code\r\n        Rect rect = computeSurfaceLayoutArea(false);\r\n        View surfaceView = getSurfaceView();\r\n        if(surfaceView != null)\r\n        {\r\n            surfaceView.layout(rect.left, rect.top, rect.right, rect.bottom);\r\n            bringChildToFront(surfaceView);\r\n        }\r\n        rect = computeBottomLayoutAreaViaSurface(ShowMode.PullOut, rect);\r\n        View currentBottomView = getCurrentBottomView();\r\n        if(currentBottomView != null)\r\n            currentBottomView.layout(rect.left, rect.top, rect.right, rect.bottom);\r\n    }\r\n====\r\n\r\nCan I do merge request?\r\nIf not, please edit this code.\r\nMany people use your code.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/daimajia/AndroidSwipeLayout/issues/comments/151410784","html_url":"https://github.com/daimajia/AndroidSwipeLayout/issues/237#issuecomment-151410784","issue_url":"https://api.github.com/repos/daimajia/AndroidSwipeLayout/issues/237","id":151410784,"user":{"login":"yoonyoungkim","id":8349133,"avatar_url":"https://avatars.githubusercontent.com/u/8349133?v=3","gravatar_id":"","url":"https://api.github.com/users/yoonyoungkim","html_url":"https://github.com/yoonyoungkim","followers_url":"https://api.github.com/users/yoonyoungkim/followers","following_url":"https://api.github.com/users/yoonyoungkim/following{/other_user}","gists_url":"https://api.github.com/users/yoonyoungkim/gists{/gist_id}","starred_url":"https://api.github.com/users/yoonyoungkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoonyoungkim/subscriptions","organizations_url":"https://api.github.com/users/yoonyoungkim/orgs","repos_url":"https://api.github.com/users/yoonyoungkim/repos","events_url":"https://api.github.com/users/yoonyoungkim/events{/privacy}","received_events_url":"https://api.github.com/users/yoonyoungkim/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T08:16:59Z","updated_at":"2015-10-27T08:16:59Z","body":"Your project is very nice. It is very helpful for me. Thank you again:)"}}