Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Can't render sidebar inside my split pane windows properly #195

Open
yzhaopost opened this issue Oct 28, 2019 · 1 comment
Open

Can't render sidebar inside my split pane windows properly #195

yzhaopost opened this issue Oct 28, 2019 · 1 comment

Comments

@yzhaopost
Copy link

I am using react and have a split pane window. Now I'd like to render the sidebar inside this pane window. I have sidebarStyle as following:
image

unfortunately it can not render properly as the height is always 0.

if I change the above position from "absolute" to "relative". It renders, but the sidebar fills the entire pane. The size is wrong.
image

Here is my wrapper for the pane window
image

If I render sidebar outside the pane window, it works.
Any suggestions are greatly appreciated.

@yzhaopost
Copy link
Author

Let me make it clear. If I render Sidebar without my SBContainer, it works great.
As long as I render it inside my SBContainer, it can not calculate the height of Sidebar (height=0). Here is my render function and the SBContainer.
image
image
Any suggestions are greatly appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant