Change-Id: Ic856da74abf6756c9a23cb4497dc8160a14675c0
Signed-off-by: Hyeonmi Kim <hm_85.kim@samsung.com>
{
if ((!_FloatCompare(bounds.width, textDimension.width)) || (!_FloatCompare(bounds.height, textDimension.height)))
{
- float itemWidth = GetBoundsF().width;
-
bounds.x = rect.x;
bounds.y = rect.y + ((rect.height - textDimension.height) / 2.0f);
- bounds.width = ((itemWidth > bounds.x + textDimension.width) ? textDimension.width : (itemWidth - bounds.x));
+ bounds.width = (bounds.width > textDimension.width) ? textDimension.width : bounds.width;
bounds.height = textDimension.height;
rect = bounds;
ListAnnexStyle style = GetListItemAnnexStyle();
float leftMargin = 0.0f;
float itemHeight = GetItemSize().height;
- float annexWidth = GetAnnexWidth(style);
+ float annexWidth = 0.0f;
float elementSpacing = 0.0f;
float textSize = 0.0f;
result r = E_SUCCESS;
{
bitmapRect.x += GetAnnexWidth(style) + elementSpacing;
}
+ else
+ {
+ annexWidth = GetAnnexWidth(style);
+ }
// Add Bitmap element (optional)
if (pBitmap != null)