File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,13 @@ export function Collapse(props: ICollapseProps) {
112
112
const dom = select < HTMLElement > (
113
113
`.${ collapseItemClassName } [data-content='${ panel . id } ']`
114
114
) ;
115
- if ( dom ) {
115
+ const contentDom = select < HTMLElement > (
116
+ `.${ collapseContentClassName } [data-content='${ panel . id } ']`
117
+ ) ;
118
+ if ( dom && contentDom ) {
116
119
dom . style . height = `${ height } px` ;
117
120
dom . style . top = `${ top } px` ;
121
+ contentDom . style . height = `${ height - HEADER_HEIGTH - 2 } px` ;
118
122
}
119
123
} ) ;
120
124
} , [ filterData ] ) ;
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ $collapse__extra: #{$collapse}__extra;
71
71
72
72
& __content {
73
73
border : 1px solid transparent ;
74
- height : calc (100% - 2px );
75
74
width : calc (100% - 3px );
76
75
77
76
& :focus {
You can’t perform that action at this time.
0 commit comments