RSG-Group/rsg-components

RSGBox automatic sizing not working properly.

retrixe opened this issue · 9 comments

By default, RSGBox should take up as much space as possible, but it does not. Or at least enough size to accommodate the insides.

Wait...., send screenshot

Look at the example code and see the height and width props. Remove them and see.

I saw this. ...?

image

I actually placed newlines between the 4 fields.
Instead, RSGBox puts them together.

OK

@retrixe In HTML you need br for new line, or using <pre/> tag

@retrixe Please test it again and close the issue... 75615da

If there are problems you can revert the commit...

br did not work since beginning. Also, we are talking JSX, I believe, which is syntactically different from HTML in some aspects. Box should scale automatically according to contents, or preferably, as much space as possible, like a true div, and height need not be specified, like a true div.

It seems to work now. Close this.