summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharald.oehlmann@elmicron.de <oehhar>2016-09-21 08:44:53 (GMT)
committerharald.oehlmann@elmicron.de <oehhar>2016-09-21 08:44:53 (GMT)
commite91d5a07174eb240584e5d0d0023f33836bd8f51 (patch)
tree358b6b776c4c4d26662332f99e205eab13d9cdb9
parent941850a92fc6905cb22dea361fb1ed1cbebcf70b (diff)
downloadtk-e91d5a07174eb240584e5d0d0023f33836bd8f51.zip
tk-e91d5a07174eb240584e5d0d0023f33836bd8f51.tar.gz
tk-e91d5a07174eb240584e5d0d0023f33836bd8f51.tar.bz2
pack: shrink frame when last child is unpacked. Ticket [d6b95ce4]
-rwxr-xr-x[-rw-r--r--]generic/tkPack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkPack.c b/generic/tkPack.c
index 88a4b2d..3fa5c5e 100644..100755
--- a/generic/tkPack.c
+++ b/generic/tkPack.c
@@ -1363,6 +1363,9 @@ Unlink(
*/
if (masterPtr->slavePtr == NULL && masterPtr->flags & ALLOCED_MASTER) {
+ if (!(masterPtr->flags & DONT_PROPAGATE)) {
+ Tk_GeometryRequest(masterPtr->tkwin, 0, 0);
+ }
TkFreeGeometryMaster(masterPtr->tkwin, "pack");
masterPtr->flags &= ~ALLOCED_MASTER;
}