Skip to content

fix: edit simple buttons running away#8533

Open
GVodyanov wants to merge 1 commit into
mainfrom
fix/edit-simple-buttons
Open

fix: edit simple buttons running away#8533
GVodyanov wants to merge 1 commit into
mainfrom
fix/edit-simple-buttons

Conversation

@GVodyanov

Copy link
Copy Markdown
Contributor

Fix #8523

Fixes:

  • save buttons going off screen

Makes it so that the buttons are anchored to the bottom of the component so they are always accessible. If there is not enough space to display everything in the component you scroll down to the attendees.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@GVodyanov GVodyanov self-assigned this Jun 19, 2026
@GVodyanov GVodyanov added the 3. to review Waiting for reviews label Jun 19, 2026
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: Grigory V <scratchx@gmx.com>
@GVodyanov GVodyanov force-pushed the fix/edit-simple-buttons branch from b74033e to 06ef8cf Compare June 19, 2026 11:09

@SebastianKrupinski SebastianKrupinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested works.

In general binding the pop over to the body instead of the anchor seems to fix unknown size issue when calculating the height, very well.

Don't remember the reasoning for not doing this in the first place, at the moment

Comment thread src/views/EditSimple.vue
Comment on lines +795 to +801
if (this.popoverReady) {
// Popover is already visible — leave position and size completely alone.
// Content changes (add attendee, toggle all-day, etc.) are handled by
// the inner element's flex layout: the content area scrolls while the
// footer stays anchored at the bottom.
return
}

@SebastianKrupinski SebastianKrupinski Jun 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this.

If you are editing at the bottom and you add an attendee, they should be displayed if there is space

Comment thread src/views/EditSimple.vue

// Get current popover element dimensions (reading offsetHeight forces a reflow)
const naturalHeight = existingPopover?.offsetHeight || 0
const estimatedHeight = Math.max(naturalHeight, 420)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the minimum height to 200. This prevents excessive spacing when clicking on object at the very bottom.

Comment thread src/views/EditSimple.vue
clearTimeout(this.resizeTimeout)
}
this.resizeTimeout = setTimeout(() => {
this.repositionPopover()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add true to the repositionPopover(true) so that window resizing moves the editor.

I don't remember why this was changed.

Comment thread src/views/EditSimple.vue
// background image is set), which turns it into a containing block for
// fixed descendants and clips them via overflow:hidden — cutting off the
// footer / save-button row.
if (this.$el.parentElement === document.body) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are no longer binding the popover to the anchor element, it should to be removed from Calendar.vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simple calendar editor bottom is cut off

2 participants