summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-09-21 13:47:02 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-09-21 13:47:02 (GMT)
commitb4f3cef3ab2ff2541d8087824a4bc5545f498e47 (patch)
tree0ec60832a4b54dcb20ceb000e212cc9597d57849
parente91d5a07174eb240584e5d0d0023f33836bd8f51 (diff)
downloadtk-b4f3cef3ab2ff2541d8087824a4bc5545f498e47.zip
tk-b4f3cef3ab2ff2541d8087824a4bc5545f498e47.tar.gz
tk-b4f3cef3ab2ff2541d8087824a4bc5545f498e47.tar.bz2
grid: shrink frame when last child is ungridded. Ticket [d6b95ce4]
-rw-r--r--generic/tkGrid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c
index 2a88b76..37c9829 100644
--- a/generic/tkGrid.c
+++ b/generic/tkGrid.c
@@ -2780,6 +2780,9 @@ Unlink(
*/
if ((masterPtr->slavePtr == NULL) && (masterPtr->flags & ALLOCED_MASTER)) {
+ if (!(masterPtr->flags & DONT_PROPAGATE)) {
+ Tk_GeometryRequest(masterPtr->tkwin, 0, 0);
+ }
TkFreeGeometryMaster(masterPtr->tkwin, "grid");
masterPtr->flags &= ~ALLOCED_MASTER;
}