menus are way too wide, wrong checkbox/radiobutton width

Change-Id: Ib8f1a21f19812092e2561621909f74fd98af2857
This commit is contained in:
Caolán McNamara 2012-10-01 09:42:40 +01:00
parent 9516c661e8
commit 1558ee84dc

View File

@ -2254,7 +2254,7 @@ Size Menu::ImplGetNativeCheckAndRadioSize( Window* pWin, long& rCheckHeight, lon
) )
{ {
rCheckHeight = aNativeBounds.GetHeight(); rCheckHeight = aNativeBounds.GetHeight();
nCheckWidth = aNativeBounds.GetWidth(); nCheckWidth = aNativeContent.GetWidth();
} }
} }
if( pWin->IsNativeControlSupported( CTRL_MENU_POPUP, PART_MENU_ITEM_RADIO_MARK ) ) if( pWin->IsNativeControlSupported( CTRL_MENU_POPUP, PART_MENU_ITEM_RADIO_MARK ) )
@ -2270,7 +2270,7 @@ Size Menu::ImplGetNativeCheckAndRadioSize( Window* pWin, long& rCheckHeight, lon
) )
{ {
rRadioHeight = aNativeBounds.GetHeight(); rRadioHeight = aNativeBounds.GetHeight();
nRadioWidth = aNativeBounds.GetWidth(); nRadioWidth = aNativeContent.GetWidth();
} }
} }
} }