[Panelconfig] Reset the panel offset on alignment change

Review Request #124785 - Created Aug. 17, 2015 and submitted

Information
David Kahles
plasma-desktop
124782
124786
bec1a16...
Reviewers
plasma

As offset and length have a different meaning in all alignments, the
panel shifts on alignment change. This could result in wrong panel
positions (e.g. panel shifted over a monitor border). The better approach
would be the recalculation of all values, so that the panel stays at it's
current position, but this would be error prone and complicated. As the
panel alignment is rarely changed, it's not worth it. The more easy
approach is just setting the panel offset to zero. This makes sure the
panel has a valid position and size.

When changing the alignment, the offset gets 0, so there are no invalid panel positions on alignment change

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
David Edmundson
David Edmundson
David Kahles
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit bba9e301cde90e7442ed1b5f5268061ddaeaad7f by David Kahles to branch master.
Loading...