From 17d7357785ed518bc23a7a1b0086d0909458cef1 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Thu, 22 May 2025 08:25:05 -0600 Subject: [PATCH] [PATCH] Fix cell height calc in resize handle Correct typo using cellWidth() instead of cellHeight() for minimum height calculation during vertical resizing. Ensures proper cell-aligned sizing behavior. (cherry picked from commit 4b1dfd560433ef89f80b5916d2ac15739c5f91fb) Co-authored-by: Wang Yu Gbp-Pq: Name upstream_2c855c2f_Fix-cell-height-calc-in-resize-handle.patch --- components/containmentlayoutmanager/resizehandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/containmentlayoutmanager/resizehandle.cpp b/components/containmentlayoutmanager/resizehandle.cpp index b3b1f673..f840717e 100644 --- a/components/containmentlayoutmanager/resizehandle.cpp +++ b/components/containmentlayoutmanager/resizehandle.cpp @@ -156,7 +156,7 @@ void ResizeHandle::mouseMoveEvent(QMouseEvent *event) // Now make minimumSize an integer number of cells minimumSize.setWidth(ceil(minimumSize.width() / layout->cellWidth()) * layout->cellWidth()); - minimumSize.setHeight(ceil(minimumSize.height() / layout->cellWidth()) * layout->cellHeight()); + minimumSize.setHeight(ceil(minimumSize.height() / layout->cellHeight()) * layout->cellHeight()); // Horizontal resize if (resizeLeft()) { -- 2.30.2