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:
parent
d2140993de
commit
8cd33455fe
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue