Skip to content

Commit

Permalink
Allow class name to be specified on top level spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeagle committed Jul 22, 2019
1 parent c9eb198 commit a5ba941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion react-spaces/src/components/FixedSizeContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './FixedSizeContainer.scss';
import * as Spaces from './Space';

interface IProps {
className?: string,
style?: React.CSSProperties,
width?: number,
height: number
Expand All @@ -19,7 +20,7 @@ export const Fixed : React.FC<IProps> = (props) => {

return (
<div
className='spaces-fixedsize-layout'
className={`spaces-fixedsize-layout${props.className ? ` ${props.className}` : ``}`}
style={style}>

<Spaces.Fill>
Expand Down
3 changes: 2 additions & 1 deletion react-spaces/src/components/FullPageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './FullPageContainer.scss';
import * as Spaces from './Space';

interface IProps {
className?: number,
left?: number,
top?: number,
right?: number,
Expand All @@ -11,7 +12,7 @@ interface IProps {

export const ViewPort : React.FC<IProps> = (props) => (
<div
className='spaces-fullpage-layout'
className={`spaces-fullpage-layout${props.className ? ` ${props.className}` : ``}`}
style={{
left: props.left || 0,
top: props.top || 0,
Expand Down

0 comments on commit a5ba941

Please sign in to comment.