I have created a modal component with various elements that is working great - apart from the alignment of a ‘close’ button. I have used auto-layout for most of the elements to control the resizing of the modal when different lengths of text are used. I would like the ‘close’ button to always be pinned top left and move with the height of the modal frame.
I have also tried grouping this ‘close’ button in a number of combinations, all with the same result.
I have not been able to do this. Please help!
Best answer by y_toku
Hi there,
Unfortunately, I’m unable to access the Google Drive link you’ve shared. However, I believe using absolute positioning could help you. Absolute position excludes an object from an auto layout flow while keeping it in the auto layout frame. The object and its surrounding siblings ignore each other, even as they resize and move.
Unfortunately, I’m unable to access the Google Drive link you’ve shared. However, I believe using absolute positioning could help you. Absolute position excludes an object from an auto layout flow while keeping it in the auto layout frame. The object and its surrounding siblings ignore each other, even as they resize and move.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.