PromucFlow_constructor/app/client/src/resizable
Abhinav Jha 74fcf269af
fix: widget borders does not reflect widget height (#23694)
## Description

#### Reported issue
If a widget - not a container like widget - has a minimum height of 4
rows, and the auto height is enabled for the widget, the widget borders
signify a much smaller height. Example - checkbox widget.

#### Results of RCA
This was happening because, we set `height: auto` for all widgets, when
it should have been done only for container like widgets. The
`height:auto` in the resizable library, allowed the library to show the
widget borders completely hugging the contents of the widget, when it
should have been restricted to a minimum of 4 rows (40px). This is
because, in the platform, the minimum height any widget can have is 4
rows (40px) in Fixed mode (not auto layout mode)


#### Solution:
We exclude widgets which do not have `isCanvas` property set to `true`
from setting the `autoHeight` flag. This allows the library to set the
provided height instead of hugging contents.

#### PR fixes following issue(s)
Fixes #23690 

#### Type of change
- Bug fix (non-breaking change which fixes an issue)
## Testing
#### How Has This Been Tested?
- [x] Manual
- [x] Cypress
2023-06-28 14:11:45 +05:30
..
autolayoutresize fix: casing changes (#23515) 2023-06-09 14:22:27 +05:30
modalresize fix: Remove borders in preview mode for modals. (#23086) 2023-05-15 16:59:15 +05:30
resizenreflow fix: widget borders does not reflect widget height (#23694) 2023-06-28 14:11:45 +05:30
common.tsx fix: resizable max height (#23143) 2023-05-22 13:29:29 +05:30
styles.css feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00