Don't use hard-coded expander sizes in wxPropertyGrid

Use wxRendererNative::GetExpanderSize() instead.

Update the tests to work with the bigger expander.

Fixes #25571
This commit is contained in:
Maarten Bent
2025-09-03 02:23:05 +02:00
parent 1e4b962613
commit 942fcf8285
2 changed files with 26 additions and 37 deletions
+1 -5
View File
@@ -1460,11 +1460,7 @@ TEST_CASE("PropertyGridTestCase", "[propgrid]")
SECTION("SetSplitterPosition")
{
#ifndef __WXQT__
const int trySplitterPos = wxTheApp->GetTopWindow()->FromDIP(50);
#else
const int trySplitterPos = 51; // FIXME!
#endif
const int trySplitterPos = wxTheApp->GetTopWindow()->FromDIP(60);
int style = wxPG_AUTO_SORT; // wxPG_SPLITTER_AUTO_CENTER;
ReplaceGrid(pgManager, style, -1);