LPS-46247 apply the fix to _openDeviceDialog instead of only _onSizeInput because it affects all device dialogs

LPS-46247 iFrame height does not change in custom screen size device preview

see Kenji's comment:
https://issues.liferay.com/browse/LPS-46247?focusedCommentId=454187&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-454187