Commit e20ea1d51c for woocommerce

commit e20ea1d51c15952c3256d4c540631cae824882b2
Author: Luigi Teschio <gigitux@gmail.com>
Date:   Mon Jun 30 14:57:39 2025 +0200

    Hide footer in Product Editor to correct postbox position calculations (#59212)

    * Hide footer in Product Editor to correct postbox position calculations

    * improve comment

    * Add changefile(s) from automation for the following project(s): woocommerce

    * improve code style

    ---------

    Co-authored-by: github-actions <github-actions@github.com>

diff --git a/plugins/woocommerce/changelog/59212-wooplug-4790-right-column-classic-editor-disappears-when-scrolling-up-and b/plugins/woocommerce/changelog/59212-wooplug-4790-right-column-classic-editor-disappears-when-scrolling-up-and
new file mode 100644
index 0000000000..df904f5597
--- /dev/null
+++ b/plugins/woocommerce/changelog/59212-wooplug-4790-right-column-classic-editor-disappears-when-scrolling-up-and
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Product Editor: fix postbox position calculation.
\ No newline at end of file
diff --git a/plugins/woocommerce/client/legacy/js/admin/product-editor.js b/plugins/woocommerce/client/legacy/js/admin/product-editor.js
index 8f2bafef16..87fbb7201d 100644
--- a/plugins/woocommerce/client/legacy/js/admin/product-editor.js
+++ b/plugins/woocommerce/client/legacy/js/admin/product-editor.js
@@ -3,6 +3,12 @@ jQuery( function ( $ ) {
 	$( function () {
 		var editorWrapper = $( '#postdivrich' );

+		/**
+		 * In the Product Editor context, the footer needs to be hidden otherwise the computation of the postbox position is wrong.
+		 * For more details, see https://github.com/woocommerce/woocommerce/pull/59212.
+		 */
+		$( '#wpfooter' ).css( { visibility: 'hidden', display: 'unset' } );
+
 		if ( editorWrapper.length ) {
 			editorWrapper.addClass( 'postbox woocommerce-product-description' );
 			editorWrapper.prepend(