Skip to content

Commit

Permalink
Fix dropdown clipping (#9384)
Browse files Browse the repository at this point in the history
Fixes #9379.
  • Loading branch information
kazcw authored Mar 12, 2024
1 parent c61e397 commit 64e29f8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/gui2/src/components/GraphEditor/widgets/WidgetApplication.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export const widgetDefinition = defineWidget(ArgumentApplicationKey, {
flex-direction: row;
place-items: center;
max-width: 2000px;
overflow-x: clip;
}
.collapse-argument-enter-active {
Expand All @@ -98,8 +97,17 @@ export const widgetDefinition = defineWidget(ArgumentApplicationKey, {
transition: max-width 0.5s cubic-bezier(0, 0.76, 0, 0.99);
}
/* Clipping is part of the show/hide animation, but must not be applied when the argument is fully-shown because
attachments such as dropdowns extend beyond the element and may be children of the argument. */
.collapse-argument-enter-active,
.collapse-argument-leave-active,
.collapse-argument-enter-from,
.collapse-argument-leave-to {
overflow-x: clip;
}
.collapse-argument-enter-from,
.collapse-argument-leave-to {
max-width: 0px;
max-width: 0;
}
</style>

0 comments on commit 64e29f8

Please sign in to comment.