vcl/source/window/window.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 8f8c5452233bdb1e1961c76d47adc580c0532908
Author: Hubert Figuière <[email protected]>
AuthorDate: Wed Nov 5 18:41:09 2025 -0500
Commit: Miklos Vajna <[email protected]>
CommitDate: Fri Nov 7 08:27:44 2025 +0100
vcl: Send dump the grid height in JSON
This allow proper grid layout when spanning over several row in JS Dialog
Signed-off-by: Hubert Figuière <[email protected]>
Change-Id: Idd64a367e302a896791ab9603d5e03737db52cfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193501
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Szymon Kłos <[email protected]>
(cherry picked from commit 123c01ef7ad0d220c50ba35d4639b970eee9c3fb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193550
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <[email protected]>
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f4a830888684..bb7981188453 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3387,6 +3387,9 @@ void Window::DumpAsPropertyTree(tools::JsonWriter&
rJsonWriter)
sal_Int32 nWidth = pChild->get_grid_width();
if (nWidth > 1)
rJsonWriter.put("width", nWidth);
+ sal_Int32 nHeight = pChild->get_grid_height();
+ if (nHeight > 1)
+ rJsonWriter.put("height", nHeight);
}
pChild = pChild->mpWindowImpl->mpNext;
}