projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix various SVACE errors
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
scrollable
/
item-view
/
depth-layout.cpp
diff --git
a/dali-toolkit/internal/controls/scrollable/item-view/depth-layout.cpp
b/dali-toolkit/internal/controls/scrollable/item-view/depth-layout.cpp
index
2fa572d
..
613af0a
100644
(file)
--- a/
dali-toolkit/internal/controls/scrollable/item-view/depth-layout.cpp
+++ b/
dali-toolkit/internal/controls/scrollable/item-view/depth-layout.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
5
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
6
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-390,7
+390,7
@@
float DepthLayout::GetClosestAnchorPosition(float layoutPosition) const
float DepthLayout::GetItemScrollToPosition(unsigned int itemId) const
{
float DepthLayout::GetItemScrollToPosition(unsigned int itemId) const
{
- float rowIndex = static_cast<
float>(itemId / mImpl->mNumberOfColumns)
;
+ float rowIndex = static_cast<
float >( itemId ) / mImpl->mNumberOfColumns
;
return -rowIndex * static_cast<float>(mImpl->mNumberOfColumns);
}
return -rowIndex * static_cast<float>(mImpl->mNumberOfColumns);
}
@@
-418,14
+418,6
@@
void DepthLayout::GetDefaultItemSize( unsigned int itemId, const Vector3& layout
itemSize.width = itemSize.height = itemSize.depth = ( IsVertical( GetOrientation() ) ? layoutSize.width : layoutSize.height ) / static_cast<float>( mImpl->mNumberOfColumns + 1 );
}
itemSize.width = itemSize.height = itemSize.depth = ( IsVertical( GetOrientation() ) ? layoutSize.width : layoutSize.height ) / static_cast<float>( mImpl->mNumberOfColumns + 1 );
}
-void DepthLayout::GetResizeAnimation(Animation& animation, Actor actor, Vector3 size, float durationSeconds) const
-{
- if(animation)
- {
- animation.AnimateTo( Property( actor, Actor::Property::SIZE ), size );
- }
-}
-
Degree DepthLayout::GetScrollDirection() const
{
Degree scrollDirection(0.0f);
Degree DepthLayout::GetScrollDirection() const
{
Degree scrollDirection(0.0f);