Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GalleryPanel does not resize properly on apply of filter #769

Closed
SuperLeiyan opened this issue Jan 17, 2020 · 2 comments
Closed

GalleryPanel does not resize properly on apply of filter #769

SuperLeiyan opened this issue Jan 17, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@SuperLeiyan
Copy link

I'm currently working on a project that uses the InRibbonGallery control. The control has a number of items it hosts, each item has a string property called "Folder" and the entire collection is grouped by "Folder" in the drop-down.

What I would like to achieve is the following:

  • Filter "InRibbonGallery" down to items in the same "Folder" as the currently selected item.
  • The filter needs to be disabled when drop-down appears, allowing the user to see all the groups/"Folder"s.
  • A filter is reapplied upon user selecting an item in the drop-down.

So far everything works fine except the scroll down button would not disable when filtering down to a "Folder" with an item count less than or equal to "MaxItemsInRow".

The enable/disable logic for the scroll buttons are based on "ScrollableHeight" property in the "ScrollViewer", which doesn't change at all, and it looks like it's due to GalleryPanel height not adjusting to the new filtered down collection

I hope I've described my issue clear enough as I'm unable to provide zipped code


Environment

  • Fluent.Ribbon v7.0.1
  • Windows 10
  • .NET Framework 4.5.2
@batzen
Copy link
Member

batzen commented Jan 17, 2020

Why are you unable to provide zipped code?

@batzen batzen self-assigned this Jan 17, 2020
@batzen batzen added Waiting for user response 😕 Waiting for the reporter to respond to questions made by maintainer. Bug 🐞 and removed Waiting for user response 😕 Waiting for the reporter to respond to questions made by maintainer. labels Feb 8, 2020
@batzen batzen added this to the Next milestone Feb 9, 2020
@batzen
Copy link
Member

batzen commented Feb 9, 2020

Was able to reproduce this in the showcase application.

@batzen batzen closed this as completed in d5969e6 Feb 16, 2020
@batzen batzen modified the milestones: Future, 8.0.0 Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants