// matchedLayoutParamHeight should not be used.
if( matchFound )
{
- if( dimension == Dimension::WIDTH )
+ if( dimension & Dimension::WIDTH )
{
SetWidthLayoutParams( control, matchedLayoutParamWidth );
}
- else if( dimension == Dimension::HEIGHT )
- {
- SetHeightLayoutParams( control, matchedLayoutParamHeight );
- }
- else if( Dimension::ALL_DIMENSIONS )
+
+ if( dimension & Dimension::HEIGHT )
{
- SetWidthLayoutParams( control, matchedLayoutParamWidth );
SetHeightLayoutParams( control, matchedLayoutParamHeight );
}
}