Set default size only
Karpengold opened this issue · 2 comments
Karpengold commented
Is it possible to set the default size only? I would like to show card in the bottom of the screen with some default height, but if I use default property it always set the top and left to zero
<Rnd
default={{height: 500, width: '100%'}} // I don't want to set x and y here
style={{
position: 'fixed',
bottom: 0,
}}>
<Component/>
</Rnd>
Eliav2 commented
Same here, it looks like the rnd wrapper always overide top
bottom
right
left
style properties no matter what you do, so this lib currently does not seems to support position: "fixed" option
Bastorx commented
Also the reverse, we should be able to set a default position only (without the size...). Having similar issue