Closed 2531800823 closed 9 months ago
Because I want him to be dynamic when I reseize. react-resize-detector
will cause him to repeat render ,Please help me with a good solution. thank you!
If its parent element is 100% then it will fail。 Here is the live example.
I want to make changes in the window so that it automatically ADAPTS to the screen size。
To help with element positioning/adaptability around other elements, you can use the display style property. So in this example you can use the 'block'
value:
chatStyle={{
display: 'block',
width: 'inherit',
height: 'inherit',
borderRadius: '8px',
}}
Here is a live example. Let me know if you have further questions.
thank you!
I will be closing this issue since it has been resolved. However, if you need any assistance in the topic of this thread feel free to comment below, otherwise you can raise a new issue. Thanks!
dome