Hi usainds,
I’ve run a few tests and I’ve come up with a snippet that’ll allow you to avoid this issue with the latest version. Please install Code Snippets and then navigate to Snippets > Add New and add the following PHP:
add_filter( 'siteorigin_widgets_instance_sow-image', function( $instance, $widget ) {
if ( ! empty( $instance['size_width'] ) && $instance['size_width'] === 9999 ) {
unset( $instance['size_width'] );
}
if ( ! empty( $instance['size_height'] ) && $instance['size_height'] === 9999 ) {
unset( $instance['size_height'] );
}
if ( ! empty( $instance['size_external_width'] ) && $instance['size_external_width'] === 9999 ) {
unset( $instance['size_external_width'] );
}
if ( ! empty( $instance['size_external_height'] ) && $instance['size_external_height'] === 9999 ) {
unset( $instance['size_external_height'] );
}
return $instance;
}, 10, 2 );
When prompted, activate the snippet. How does that look?
I have always set one of the custom values to 9999 which automatically sets that value to the largest size it needs to be while still being proportional to the other value that is set.
This happens automatically with all of our widgets so I recommend against doing this.
Kind regards,
Alex