Skip to content

Fix resize QuesoScrollable#274

Open
AurelienVigne wants to merge 3 commits intodevfrom
273-fix-resize-quesoscrollable
Open

Fix resize QuesoScrollable#274
AurelienVigne wants to merge 3 commits intodevfrom
273-fix-resize-quesoscrollable

Conversation

@AurelienVigne
Copy link
Copy Markdown
Member

Summary

  • Observe scroll content children with ResizeObserver and MutationObserver so overflow and scroll state update when slot content grows or shrinks (fixed-height container no longer misses those changes).
  • Rename types.ts to QuesoScrollable.types.ts and align the barrel export with the component import.

Breaking changes

  • None for consumers using @components/QuesoScrollable. Deep imports of ./types from the component folder would need to point at ./QuesoScrollable.types instead.

Close #273

Made with Cursor

<script setup lang="ts">
import { computed, nextTick, onMounted, ref, useSlots, watchEffect } from "vue";
import { computed, nextTick, onMounted, ref, useSlots, watch, watchEffect } from "vue";
import { useScroll, useResizeObserver } from "@vueuse/core";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

useResizeObserver est déjà un ResizeObserver. Est-ce qu'il y aurait moyen de merge tout ensemble ou de vérifier si c'est useResizeObserver qui est mal intégré?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix resize QuesoScrollable

2 participants