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

Mismatching position of float window by using RestoreOption_RelativeToMainWindow #171

Closed
amuralev opened this issue Feb 23, 2021 · 0 comments
Assignees
Milestone

Comments

@amuralev
Copy link

Steps to reproduce:

  1. Run "kddockwidgets_example" with option "s" ( KDDockWidgets::RestoreOption_RelativeToMainWindow );
  2. Undock any dock widget;
  3. Set width of FLOAT widget equal to MainWindow width;
  4. Save layout;
  5. Increase the width of MainWindow by 2 times (for example);
  6. Restore layout;
  7. As you can see, the width of FLOAT widget has doubled, but the position is highly displaced.

RestoreOption_RelativeToMainWindow

Environment:

  1. Windows 10 (64bit);
  2. Qt 5.15.1 MSVC 2019 64bit;
  3. KDDW 1.3 (tag v1.3.0).
@iamsergio iamsergio self-assigned this Feb 23, 2021
@iamsergio iamsergio added this to the v1.3.1 milestone Feb 23, 2021
iamsergio added a commit that referenced this issue Feb 23, 2021
Doesn't make much sense to apply a scalling factor to the floating window's
position. Instead we should apply the factor to the delta position between
the main window and the floating window

Fixes #171
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

No branches or pull requests

2 participants