Repository navigation
fix(dock): use positioner coordinates for folder popup position - #1927
Merged
Merged
Conversation
1. Remove manual screen-bound clamping for folder popup X/Y coordinates 2. Use DockPanelPositioner coordinates directly for popup placement 3. Let the positioner handle boundary adjustment consistently 4. Simplify FolderPopup.qml positioning logic Log: Folder popup now uses positioner coordinates for placement Influence: Folder popup positioning becomes consistent with other dock popups fix(dock): 使用定位器坐标设置文件夹弹窗位置 1. 移除文件夹弹窗 X/Y 坐标的手动屏幕边界限制 2. 直接使用 DockPanelPositioner 坐标进行弹窗定位 3. 由定位器统一处理边界调整 4. 简化 FolderPopup.qml 的定位逻辑 Log: 文件夹弹窗改用定位器坐标进行定位 Influence: 文件夹弹窗定位与其他 Dock 弹窗保持一致 PMS: TASK-399569
Reviewer's GuideUIUse the dock positioner’s coordinates directly for the folder popup, removing the manual screen-bound clamping so placement is adjusted consistently with other dock popups.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/dock/taskmanager/package/FolderPopup.qml" line_range="55-56" />
<code_context>
- Math.min(positionerAnchor.DockPanelPositioner.x, screenX + screenWidth - Panel.rootObject.x - width - 10))
- popupY: Math.max(screenY - Panel.rootObject.y + 10,
- Math.min(positionerAnchor.DockPanelPositioner.y, screenY + screenHeight - Panel.rootObject.y - height - 10))
+ popupX: positionerAnchor.DockPanelPositioner.x
+ popupY: positionerAnchor.DockPanelPositioner.y
+
closeOnInactive: !interactionActive && !Panel.contextDragging
</code_context>
<issue_to_address>
**Folder popups leave usable area**
When a folder anchor is near a screen or work-area edge and the popup crosses the available-geometry edge, `DockPanelPositioner.updatePosition()` does not clamp its anchor-derived coordinates to `availableGeometry`, and `FolderPopup` passes them directly as `popupX` and `popupY`. `PanelPopupWindow` clamps only to screen bounds on X11 and skips its clamp on Wayland, so the popup overlaps reserved areas or is clipped and partly inaccessible.
Clamp the positioner-computed popup bounds to the available geometry before assigning `popupX` and `popupY`.
</issue_to_address>
|
BLumia
approved these changes
Dec 3, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Log: Folder popup now uses positioner coordinates for placement Influence: Folder popup positioning becomes consistent with other dock popups
fix(dock): 使用定位器坐标设置文件夹弹窗位置
Log: 文件夹弹窗改用定位器坐标进行定位
Influence: 文件夹弹窗定位与其他 Dock 弹窗保持一致
PMS: TASK-399569
Summary by Sourcery
Bug Fixes: