Is there a standard way to center the element to the parent? #676
                  
                    
                      arimariojesus
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I need to center my element initially to its parent. Is there any simple way to accomplish this task?
I thought about the possibility of capturing the measurements of the parent element and the element that I want to center, make the necessary calculations and later move to the
defaultPosition, but this is a little expensive.Beta Was this translation helpful? Give feedback.
All reactions