Revert "hefty: bar: fix popup bg getting clipped"

nvm that sloppy calculation made it worse
This commit is contained in:
end-4
2026-03-20 23:49:33 +01:00
parent 124ea7b245
commit 0a185efcc5
@@ -111,12 +111,12 @@ Shapes.ShapeCanvas {
} }
} }
width: { width: {
if (!vertical) return bgShape.showPopup ? Math.max(backgroundWidth, popupWidth + popupContentOffsetX * 2) : backgroundWidth; if (!vertical) return bgShape.showPopup ? Math.max(backgroundWidth, popupWidth) : backgroundWidth;
else return bgShape.showPopup ? (containerShape.width + popupShape.width + bgShape.spacing) : containerShape.width; else return bgShape.showPopup ? (containerShape.width + popupShape.width + bgShape.spacing) : containerShape.width;
} }
height: { height: {
if (!vertical) return bgShape.showPopup ? (containerShape.height + popupShape.height + bgShape.spacing) : containerShape.height; if (!vertical) return bgShape.showPopup ? (containerShape.height + popupShape.height + bgShape.spacing) : containerShape.height;
else return bgShape.showPopup ? Math.max(backgroundHeight, popupHeight + popupContentOffsetY * 2) : backgroundHeight; else return bgShape.showPopup ? Math.max(backgroundHeight, popupHeight) : backgroundHeight;
} }
property bool popupHiding: false property bool popupHiding: false
onShowPopupChanged: popupHiding = true onShowPopupChanged: popupHiding = true