react-rnd icon indicating copy to clipboard operation
react-rnd copied to clipboard

Set default size only

Open Karpengold opened this issue 2 years ago • 2 comments

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>

Karpengold avatar Apr 28 '22 11:04 Karpengold

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

Eliav2 avatar May 03 '22 13:05 Eliav2