Previously, content size was calculated using simple subtraction without checking for negative values.
This causes incorrect rendering results in visual updates.
Change-Id: I23cd6b6d1536e10fa8baf3ed7cef673de4b2abd7
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Extents padding;
padding = self.GetProperty<Extents>(Toolkit::Control::Property::PADDING);
- Vector2 contentSize(size.x - (padding.start + padding.end), size.y - (padding.top + padding.bottom));
+ float width = std::max(size.x - (padding.start + padding.end), 0.0f);
+ float height = std::max(size.y - (padding.top + padding.bottom), 0.0f);
+ Vector2 contentSize(width, height);
if(mController->IsTextFitArrayEnabled())
{