fix: Removing a line of code to fix extra space issue on Page with Fixed height container (#41178)

## Description

Removing a line of code to fix extra space issue on Page with Fixed
height container once switched from a Page with Auto height container.
Also, manually tested out all issues from
[#19082](https://github.com/appsmithorg/appsmith/pull/19082) to confirm
nothing else breaks from the time these lines were added in the code.

Fixes [#41180](https://github.com/appsmithorg/appsmith/issues/41180)

## Automation

/ok-to-test tags="@tag.All"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/17043252133>
> Commit: c8bde1226eed929dec92b1421a6167977486af97
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=17043252133&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Mon, 18 Aug 2025 17:04:42 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved main container auto-height calculation to eliminate
unintended extra spacing, resulting in more accurate, content-driven
sizing.

* **Chores**
* Added diagnostic logging around main container size computation in
view mode to aid troubleshooting (no functional impact).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Ankita Kinger 2025-08-20 11:39:59 +05:30 committed by GitHub
parent 708c4061c2
commit 72c47ee27c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,10 +204,6 @@ export function* getMinHeightBasedOnChildren(
}
}
if (widgetId === MAIN_CONTAINER_WIDGET_ID) {
return minHeightInRows + GridDefaults.MAIN_CANVAS_EXTENSION_OFFSET;
}
return minHeightInRows;
}
/**