Fixed sash window colour (highlight wasn't showing up); Dialog Editor fix
for space distribution git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1552,15 +1552,15 @@ void wxResourceManager::DistributePositions(int command)
|
||||
|
||||
item->Move(controlX, controlY);
|
||||
|
||||
int resX = resource->GetWidth();
|
||||
int resY = resource->GetHeight();
|
||||
int resX = controlX;
|
||||
int resY = controlY;
|
||||
|
||||
// Also update the associated resource
|
||||
// We need to convert to dialog units if this is not a dialog or panel, but
|
||||
// the parent resource specifies dialog units.
|
||||
if (parentResource->GetResourceStyle() & wxRESOURCE_DIALOG_UNITS)
|
||||
{
|
||||
wxPoint convertedPos = item->GetParent()->ConvertPixelsToDialog(wxPoint(pos.x, pos.y));
|
||||
wxPoint convertedPos = item->GetParent()->ConvertPixelsToDialog(wxPoint(resX, resY));
|
||||
resX = convertedPos.x;
|
||||
resY = convertedPos.y;
|
||||
}
|
||||
|
Reference in New Issue
Block a user