Fix generic wxDataViewCtrl drag hint size with GTK

Some WMs initially report incorrect frame extents for the hint window,
then correct it to 0x0 later. This interacts badly with the deferred
show mechanism, causing the hint window height to be much too small.
Issues with TLW decoration sizes can be avoided by setting the client
size rather than the overall size.
This commit is contained in:
Paul Cornett 2023-11-27 23:27:43 -08:00
parent d2140993de
commit 8cd33455fe

View file

@ -1710,12 +1710,13 @@ public:
m_dist_x -= indent;
m_hint = new wxFrame( m_win->GetParent(), wxID_ANY, wxEmptyString,
wxPoint(pos.x - m_dist_x, pos.y + 5 ),
ib.GetSize(),
wxSize(1, 1),
wxFRAME_TOOL_WINDOW |
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER );
new wxBitmapCanvas( m_hint, ib, ib.GetSize() );
m_hint->SetClientSize(ib.GetSize());
m_hint->SetTransparent(128);
m_hint->Show();
}