Skip to content

Commit 9ec54f9

Browse files
committed
Removed clear fix from space
1 parent 40a0cb0 commit 9ec54f9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

react-spaces/src/components/Space.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
top: 0;
1111
right: 0;
1212
bottom: 0;
13-
14-
&:after {
15-
content: "";
16-
display: table;
17-
clear: both;
18-
}
1913
}
2014

2115
&.scrollable {

react-spaces/src/components/Space.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ class Space extends React.Component<AllProps, IState> {
264264
<div
265265
id={id}
266266
ref={this.divElementRef}
267-
className={`spaces-space${this.props.anchor || ''}${this.props.scrollable ? ' scrollable' : ''}${className ? ` ${className}` : ``}`}
267+
className={`spaces-space${this.props.anchor || ''}${this.props.scrollable ? ' scrollable' : ''}`}
268268
style={style}>
269269
{ resizeRender }
270-
<div className="spaces-space-inner" style={this.props.style}>
270+
<div className={`spaces-space-inner${className ? ` ${className}` : ``}`} style={this.props.style}>
271271
<SpaceContext.Provider value={currentContext}>
272272
<SpaceInfoContext.Provider value={{ width: Math.floor(this.state.currentWidth), height: Math.floor(this.state.currentHeight) }}>
273273
{ spaceRender }

0 commit comments

Comments
 (0)