Skip to content

Commit

Permalink
fix: drawer footer fixed (ant-design#19751)
Browse files Browse the repository at this point in the history
* fix footer fiexd

* fix test
  • Loading branch information
jljsj33 authored and afc163 committed Nov 15, 2019
1 parent 2f30c80 commit 0cb5601
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/drawer/demo/form-in-drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class DrawerForm extends React.Component {
width={720}
onClose={this.onClose}
visible={this.state.visible}
bodyStyle={{ paddingBottom: 80 }}
>
<Form layout="vertical" hideRequiredMark>
<Row gutter={16}>
Expand Down Expand Up @@ -140,7 +141,7 @@ class DrawerForm extends React.Component {
<div
style={{
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
width: '100%',
borderTop: '1px solid #e9e9e9',
Expand Down
4 changes: 4 additions & 0 deletions components/drawer/style/drawer.less
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@
line-height: @line-height-base;
word-wrap: break-word;
}
&-wrapper-body {
height: 100%;
overflow: auto;
}

&-mask {
position: absolute;
Expand Down

0 comments on commit 0cb5601

Please sign in to comment.