In my angularJS application, I am utilizing SmartyStreets' LiveAddress for address validation and autofilling two fields in a form. After the user submits the form, a message (either success or failure) is displayed in a div above the form. However, this div causes the form to shift down while the smarty-ui divs remain stationary, resulting in misalignment with their corresponding fields in the smarty-tag-check divs.
I attempted to trigger a window resize using
angular.element($window).resize();
after displaying the success message, following advice from SmartyStreets jQuery element positioning breaks. Unfortunately, this approach did not yield any results. Is there a more effective way to adjust the position of the smarty-ui divs within AngularJS to ensure they stay aligned correctly?
Any suggestions would be greatly appreciated!