| Summary: | Position of added applet offset by top panel height | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Kai Uwe Broulik <kde> |
| Component: | Containment | Assignee: | Sebastian Kügler <sebas> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde |
| Priority: | NOR | ||
| Version First Reported In: | master | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/plasma-desktop/f3f6867da8859a57385805ba46ff7cbfd98b4fef | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Kai Uwe Broulik
2016-02-08 23:07:16 UTC
This code is to blame:
// On applet undo or via scripting, the applet position will be saved
// in applet's scene coordinates so remap it to resultsflow's coordinates.
var pos = root.parent.mapToItem(resultsFlow, x, y);
While it fixes the undo position, it broke the add applet position. If I remove this, the drop position is correct but undoing the deletion places it wrong.
Git commit f3f6867da8859a57385805ba46ff7cbfd98b4fef by David Rosca. Committed on 09/03/2016 at 14:46. Pushed by drosca into branch 'Plasma/5.6'. Fix position of new applets added with drag and drop The position of applet is still a little off, probably because the code that actually adds the applet is also computing with applet margins, but we don't have applet at this point yet. Differential Revision: https://phabricator.kde.org/D941 M +2 -1 containments/desktop/package/contents/ui/main.qml http://commits.kde.org/plasma-desktop/f3f6867da8859a57385805ba46ff7cbfd98b4fef |