Skip to content

Commit 800ff84

Browse files
committed
1 parent c97b933 commit 800ff84

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

assets/js/customizer.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,20 @@
3535
} );
3636

3737
control.widthElement.keyup( function() {
38-
if ( control.respectRatio && control.hasLogo ) {
39-
control.calculateRatio( 'width' );
38+
if ( control.hasLogo ) {
39+
if ( control.respectRatio ) {
40+
control.calculateRatio( 'width' );
41+
}
4042
control.shapelyInterval = setInterval( control.updateControl, 1000, control );
4143
}
44+
4245
} );
4346

4447
control.heightElement.keyup( function() {
45-
if ( control.respectRatio && control.hasLogo ) {
46-
control.calculateRatio( 'height' );
48+
if ( control.hasLogo ) {
49+
if ( control.respectRatio ) {
50+
control.calculateRatio( 'height' );
51+
}
4752
control.shapelyInterval = setInterval( control.updateControl, 1000, control );
4853
}
4954
} );

0 commit comments

Comments
 (0)