Skip to content

Commit

Permalink
Add hostid
Browse files Browse the repository at this point in the history
  • Loading branch information
montselozanod committed Jan 12, 2018
1 parent c874551 commit d5a842d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export class Callout extends BaseComponent<ICalloutProps, ICalloutState> {
<CalloutContent { ...this.props } />
);
return this.props.doNotLayer ? content : (
<Layer>
<Layer
hostId={ this.props.layerHostid }
>
{ content }
</Layer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ export interface ICalloutProps extends React.Props<Callout | CalloutContent> {
*/
doNotLayer?: boolean;

layerHostid?: string;

/**
* If true the position will not change sides in an attempt to fit the callout within bounds.
* It will still attempt to align it to whatever bounds are given.
Expand Down

0 comments on commit d5a842d

Please sign in to comment.