#include "FUi_AccessibilityContainer.h"
#include "FUi_AccessibilityElement.h"
#include "FUi_CoordinateSystemUtils.h"
+#include "FUi_Math.h"
#include "FUi_ResourceManager.h"
+#include "FUiCtrl_ScrollPanel.h"
#include "FUiCtrl_ContextMenuItem.h"
using namespace Tizen::Base;
}
FloatRectangle bounds = GetBoundsF();
+ _ScrollPanel* pScrollPanel = static_cast<_ScrollPanel*>(GetParent());
+ FloatRectangle boundsScrollPanel = pScrollPanel->GetBoundsF();
+
+ float topOverlap = pScrollPanel->GetScrollPosition() - bounds.y;
+ if (!_FloatCompareLE(topOverlap, 0.0f))
+ {
+ topMargin = topOverlap;
+ }
+ else
+ {
+ topOverlap = 0.0f;
+ }
+
+ float bottomOverlap = bounds.y + bounds.height - (pScrollPanel->GetScrollPosition() + boundsScrollPanel.height);
+ if (!_FloatCompareLE(bottomOverlap, 0.0f))
+ {
+ bottomMargin = bottomOverlap;
+ }
+ else
+ {
+ bottomOverlap = 0.0f;
+ }
+
+ if (!__lowerDividerLine && _FloatCompare(bottomOverlap, __dividerHeight * 2.0f))
+ {
+ bottomMargin = __bgPressedMargin;
+ }
+
__pBackgroundLabel->SetBounds(FloatRectangle(__bgPressedMargin, topMargin, bounds.width - __bgPressedMargin * 2.0f, bounds.height - topMargin - bottomMargin));
+
Bitmap* BgBitmap = _BitmapImpl::GetColorReplacedBitmapN(*__pMagentaBgBitmap, Color::GetColor(COLOR_ID_MAGENTA), color);
SysTryReturnVoidResult(NID_UI_CTRL, BgBitmap, E_OUT_OF_MEMORY, "[%s] Propagating.", GetErrorMessage(GetLastResult()));