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

Sizing a dock to fit within a page #37

Open
charue808 opened this issue Aug 20, 2018 · 3 comments
Open

Sizing a dock to fit within a page #37

charue808 opened this issue Aug 20, 2018 · 3 comments

Comments

@charue808
Copy link

Hello,
I was wondering if or how you can resize the height of a dock to fit within a div container. It seems that the default is the window height.

Thanks in advance!

@lauritapear
Copy link

lauritapear commented Aug 31, 2018

@charue808 I actually have the same question. One way of doing it is, with dockStyle so you can set the height of your dock something like this:

const dockStyle = { left: '40px', top: '40px', height: '88.5%', };

<Dock position='left' size = {sizeOfDock} isVisible={visible} zIndex={0} dimMode='none' dockStyle={dockStyle}>

So this works for the height and top of the dock, however I cannot get "left : 40px" to work... any ideas?

@charue808
Copy link
Author

@lauritapear Oh that's a good idea on the height of the Dock. Maybe left doesn't work since it's a left position dock, did you try using "right: 40px".

@lauritapear
Copy link

@charue808 I tried "right: 40px", but still didnt work for me.

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

2 participants