mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 18:18:26 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user