}
}
+void
+_Popup::UpdateClientBounds(const FloatDimension& size, FloatRectangle& clientBounds)
+{
+ float y = 0.0f;
+
+ float titleHeight = 0.0f;
+ float titleLetfMargin = 0.0f;
+ float titleRightMargin = 0.0f;
+
+ _ControlOrientation orientation;
+
+ orientation = GetOrientation();
+
+ GET_SHAPE_CONFIG(POPUP::TITLE_HEIGHT, orientation, titleHeight);
+ GET_SHAPE_CONFIG(POPUP::TITLE_TEXT_LEFT_MARGIN, orientation, titleLetfMargin);
+ GET_SHAPE_CONFIG(POPUP::TITLE_TEXT_RIGHT_MARGIN, orientation, titleRightMargin);
+
+ if (HasTitle())
+ {
+ y = titleHeight;
+ }
+
+ clientBounds.x = titleLetfMargin;
+ clientBounds.y = y;
+
+ clientBounds.width = size.width - (titleLetfMargin + titleRightMargin);
+ clientBounds.height = size.height - y;
+}
+
}}} // Tizen::Ui::Controls
virtual result OnBoundsChanging(const Tizen::Graphics::Rectangle& bounds);
virtual bool IsLayoutChangable(void) const;
virtual void OnOwnerChanged(_Control* pOldOwner);
+ virtual void UpdateClientBounds(const Tizen::Graphics::FloatDimension& size, Tizen::Graphics::FloatRectangle& clientBounds);
// Accessor
public: