Frontmatter
| id | 5495 |
| title | dialog.Base: centering logic |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jun 29, 2024, 6:03 PM |
| updatedAt | Jun 29, 2024, 6:17 PM |
| githubUrl | https://github.com/neomjs/neo/issues/5495 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 29, 2024, 6:17 PM |
it is time to get rid of:
&.neo-centered { left : 50%; top : 50%; transform : translate(-50%, -50%); }by default, a
position: fixeddiv should already be centered.however, the logic of
animateShow()needs to grab the size of the offscreen rendered dialog & document body, to animate it to a calculated centered position.