Giter VIP home page Giter VIP logo

Comments (9)

jljsj33 avatar jljsj33 commented on May 21, 2024

getContainer={null}

from drawer.

junbinku avatar junbinku commented on May 21, 2024

This didn't work for me:


<div className='containerGrid'> 
  <Drawer getContainer={null} ><div>test</div></Drawer>
</div>
.containerGrid {
  grid-row-start: 3;
  grid-row-end: 3;
  grid-column-start: 1;
  grid-column-end: 3;
}

from drawer.

jljsj33 avatar jljsj33 commented on May 21, 2024

??????????
image

from drawer.

junbinku avatar junbinku commented on May 21, 2024

Sorry thats the sample of what I am trying to achieve.

from drawer.

jljsj33 avatar jljsj33 commented on May 21, 2024

I don't understand what you are saying.

You're going to be render in div. Or just putting Drawer on div, render in body?

render in div:

<div className='containerGrid'> 
  <Drawer getContainer = {null}><div>test</div></Drawer>
</div>

https://codesandbox.io/s/92l9541xrw

render in body

Your sample is in this way.

<div className='containerGrid'> 
  <Drawer ><div>test</div></Drawer>
</div>

https://codesandbox.io/s/1zoo8q0lj4

from drawer.

jljsj33 avatar jljsj33 commented on May 21, 2024

翻译真累。。。

from drawer.

 avatar commented on May 21, 2024

Doing the following worked for me

<div style={{ transform: 'translate(0)' }}> 
  <Drawer ><div>test</div></Drawer>
</div>

from drawer.

Alejandroid17 avatar Alejandroid17 commented on May 21, 2024

This example https://codesandbox.io/s/92l9541xrw does not work correctly with version 4.4.3. How can I make it work correctly?

I want to do the same as this functionality (https://drawer-react-component.vercel.app/demo/no-mask), but inside a div.

from drawer.

Alejandroid17 avatar Alejandroid17 commented on May 21, 2024

This example https://codesandbox.io/s/92l9541xrw does not work correctly with version 4.4.3. How can I make it work correctly?

I want to do the same as this functionality (https://drawer-react-component.vercel.app/demo/no-mask), but inside a div.

I have built this example https://stackblitz.com/edit/react-krx3ez?file=src/App.js, which has been useful, but I would like the content of the body is not under the drawer.

from drawer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.