Skip to content

Commit 2962c71

Browse files
author
Jakub Peksa
committed
style(app.js, pickers): update pickers containers, update App.js styles
Remove static 500px height for overlay and drop-pane components, keep static height for inline picker, add styles to example pickers
1 parent b560c95 commit 2962c71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const App = () => {
3939
</button>
4040
</div>
4141
<div>
42-
{isPickerDropPaneVisible && <PickerDropPane apikey='YOUR_APIKEY'/>}
42+
{isPickerDropPaneVisible && <PickerDropPane apikey='YOUR_APIKEY'><div style={{height: '800px'}}/></PickerDropPane>}
4343
{isPickerInlineVisible && <PickerInline apikey='YOUR_APIKEY'/>}
4444
{isPickerOverlayVisible && <PickerOverlay apikey='YOUR_APIKEY'/>}
4545
</div>

src/picker/picker-drop-pane.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const PickerDropPane = ({
2626
if (children) {
2727
return React.cloneElement(children, { id: containerId });
2828
}
29-
return <div style={{ height: '500px' }} id={containerId} />;
29+
return <div id={containerId} />;
3030
};
3131
return render();
3232
};

src/picker/picker-overlay.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PickerOverlay = ({
2323
if (children) {
2424
return React.cloneElement(children, { id: containerId });
2525
}
26-
return <div style={{ height: '500px' }} id={containerId} />;
26+
return <div id={containerId} />;
2727
};
2828
return render();
2929
};

0 commit comments

Comments
 (0)