mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-19 20:44:16 +02:00
ff1a81d85d
The panel shrank to its title bar whenever the selection had nothing it could edit (a click on an empty spot, several elements, a mix of items): its content layout used QLayout::SetMaximumSize, and an empty vertical layout's maximum height is 0. The other right-hand panels took the room, and when an element was selected again the panels were split again from their size hints, so the height the user had dragged the panel to was lost (reported by ankostis in #1439). With the default size constraint the panel keeps its height and stays blank while there is nothing to edit. The element, wire, text and shape editors draw the same: their screenshots in a 730-860 px tall panel are pixel-identical before and after. Test: tst_selectionpanelheight (on master the height goes from 560 to 19 px). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>