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

RibbonWindow title not shown in correct position when using SizeToContent #454

Closed
Cubey2019 opened this issue Aug 15, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@Cubey2019
Copy link
Contributor

When using SizeToContent="Width" (or WidthAndHeight) the caption in the window title bar can appear offset to the right, in some cases overlapping with the minimise/maximise/close buttons. The problem corrects itself if you manually resize the window (just clicking the resize border is enough).

This is a screenshot of our application's title bar, before & after resize:
caption

I can also reproduce this in the showcase application (committed changes to branch 1d39771) although it's not as obvious:
fluent caption


Environment

  • Fluent.Ribbon v6.0.0 (d58e607)
  • Windows 10
  • .NET Framework 4.7 (using 4.6.2 build)
@Cubey2019
Copy link
Contributor Author

@batzen I've just been checking this again and noticed I can still reproduce this issue in the current source, by maximising the window (by dragging the window to the top of the screen, other maximise methods are OK).

If I change RibbonWindow.OnStateChanged to call Measure & Arrange (in the same way as you have in OnLoaded) then it seems to be OK.

@batzen batzen reopened this Aug 30, 2017
@batzen
Copy link
Member

batzen commented Aug 30, 2017

Will have a look again then.

@batzen
Copy link
Member

batzen commented Sep 5, 2017

Doing that only partially fixes all issues.
When dragging to the side the window is still not resized, but that also does not happen with a regular WPF window...

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