{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/1987","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/1987/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/1987/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/1987/events","html_url":"https://github.com/ant-design/ant-design/issues/1987","id":158640241,"number":1987,"title":"关于 Affix 的 宽 高（之前没按格式写抱歉）","user":{"login":"xutou12","id":2884665,"avatar_url":"https://avatars.githubusercontent.com/u/2884665?v=3","gravatar_id":"","url":"https://api.github.com/users/xutou12","html_url":"https://github.com/xutou12","followers_url":"https://api.github.com/users/xutou12/followers","following_url":"https://api.github.com/users/xutou12/following{/other_user}","gists_url":"https://api.github.com/users/xutou12/gists{/gist_id}","starred_url":"https://api.github.com/users/xutou12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xutou12/subscriptions","organizations_url":"https://api.github.com/users/xutou12/orgs","repos_url":"https://api.github.com/users/xutou12/repos","events_url":"https://api.github.com/users/xutou12/events{/privacy}","received_events_url":"https://api.github.com/users/xutou12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-06T09:51:49Z","updated_at":"2016-06-13T06:01:02Z","closed_at":null,"body":"## 你做了什么？\r\n\r\n```jsx\r\n<Row className=\"toolbar-wrap\" style=\"padding: 0 4%\">\r\n  <Affix offsetTop={offsetTop}>\r\n    <Row className=\"toolbar\">\r\n      <Col style={{ float: 'left' }}>\r\n        <Button  {...buttonProps}>\r\n            刷新\r\n        </Button>\r\n      </Col>\r\n      <Col style={{ float: 'right' }}>\r\n        <Pagination {...paginationProps} />\r\n      </Col>\r\n    </Row>\r\n  </Affix>\r\n</Row>\r\n```\r\n\r\n```less\r\n.toolbar-wrap {\r\n  .ant-affix {\r\n    width: 100%;\r\n  }\r\n}\r\n```\r\n\r\n## 你期待的结果是：\r\n\r\n在窗口resize时 .toolbar-wrap 宽度变化自适应，.toolbar 宽度跟随父节点变化\r\n左侧跟父节点对齐，固定元素下面的内容正常展示\r\n\r\n## 实际上的结果和抱怨：\r\n\r\n左侧没有跟父节点对齐，宽度也没有跟随变化，固定元素下面的内容瞬间被固定元素挡住\r\n出现了固定元素在状态变化瞬间下面的内容上下跳动的情况\r\n\r\n## 可重现的在线演示\r\n\r\n无\r\n\r\n## 本地环境信息\r\n\r\n- antd 版本:1.3.2\r\n- 操作系统及其版本：mac os x 10.11.5\r\n- 浏览器及其版本:safari 9.1.1\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/225495372","html_url":"https://github.com/ant-design/ant-design/issues/1987#issuecomment-225495372","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/1987","id":225495372,"user":{"login":"xutou12","id":2884665,"avatar_url":"https://avatars.githubusercontent.com/u/2884665?v=3","gravatar_id":"","url":"https://api.github.com/users/xutou12","html_url":"https://github.com/xutou12","followers_url":"https://api.github.com/users/xutou12/followers","following_url":"https://api.github.com/users/xutou12/following{/other_user}","gists_url":"https://api.github.com/users/xutou12/gists{/gist_id}","starred_url":"https://api.github.com/users/xutou12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xutou12/subscriptions","organizations_url":"https://api.github.com/users/xutou12/orgs","repos_url":"https://api.github.com/users/xutou12/repos","events_url":"https://api.github.com/users/xutou12/events{/privacy}","received_events_url":"https://api.github.com/users/xutou12/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T06:01:02Z","updated_at":"2016-06-13T06:01:02Z","body":"目前正在尝试使用antd 多多交流 :)"}}
{"actor":{"display_login":"xutou12"}}