/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void ItemView::SetLayoutArray( const Property::Array& layouts )
{
mlayoutArray = layouts;
- if(GetLayoutCount() > 0)
+ const int layoutCount = GetLayoutCount();
+ if( layoutCount > 0 )
{
- for(unsigned int index = GetLayoutCount() - 1; index >= 0; --index)
+ for(int index = layoutCount - 1; index >= 0; --index)
{
RemoveLayout(index);
if(index == 0) break;
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
bool shouldGrowRight = canGrowRight && mRoot->rectArea.height >= mRoot->rectArea.width+blockWidth;
bool shouldGrowDown = canGrowDown && mRoot->rectArea.width >= mRoot->rectArea.height+blockHeight;
- if( canGrowRight && canGrowRight )
+ if( canGrowRight && canGrowDown )
{
shouldGrowRight = mRoot->rectArea.width+blockWidth <= mRoot->rectArea.height+blockHeight;
shouldGrowDown = !shouldGrowRight;
mScrollPosition(),
mHorizontalAlignment( Layout::HORIZONTAL_ALIGN_BEGIN ),
mVerticalAlignment( Layout::VERTICAL_ALIGN_TOP ),
+ mAlignmentOffset( 0.0f ),
mElideEnabled( false )
{
mLogicalModel = LogicalModel::New();