Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default size only #869

Open
Karpengold opened this issue Apr 28, 2022 · 1 comment
Open

Set default size only #869

Karpengold opened this issue Apr 28, 2022 · 1 comment

Comments

@Karpengold
Copy link

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
Copy link

Eliav2 commented May 3, 2022

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

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

No branches or pull requests

2 participants