const GlyphIndex firstMiddleIndexOfGlyphs = model->GetFirstMiddleIndexOfElidedGlyphs();
+ //Test total height of lines is fit inside Controller's size
+ Length heightOfLines = 0;
+ for(Length lineIndex=0u; lineIndex < numberOfLines; lineIndex++)
+ {
+ const LineRun& tempLine = *( model->GetLines() + lineIndex);
+ heightOfLines+= (tempLine.ascender - tempLine.descender);
+ }
+
+ if(heightOfLines > data.size.height)
+ {
+ std::cout << "The heightOfLines should be less than height of controller.";
+ std::cout << " The heightOfLines is "<< heightOfLines << "and the height of controller is "<< data.size.height <<std::endl;
+ return false;
+ }
+
if( numberOfLines != 0u )
{
Length elidedLineIndex = 0u;
const GlyphIndex firstMiddleIndexOfGlyphs = textModel->GetFirstMiddleIndexOfElidedGlyphs();
const GlyphIndex secondMiddleIndexOfGlyphs = textModel->GetSecondMiddleIndexOfElidedGlyphs();
+ //Test total height of lines is fit inside Controller's size
+ Length heightOfLines = 0;
+ for(Length lineIndex=0u; lineIndex < numberOfLines; lineIndex++)
+ {
+ const LineRun& tempLine = *( textModel->GetLines() + lineIndex);
+ heightOfLines+= (tempLine.ascender - tempLine.descender);
+ }
+
+ if(heightOfLines > data.size.height)
+ {
+ std::cout << "The heightOfLines should be less than height of controller.";
+ std::cout << " The heightOfLines is "<< heightOfLines << "and the height of controller is "<< data.size.height <<std::endl;
+ return false;
+ }
+
if( numberOfLines != 0u )
{
Length elidedLineIndex = 0u;
virtual Dali::Accessibility::States CalculateStates();
/**
- * @brief Makes sure that a given child of this container (e.g. ItemView) is visible
+ * @brief Makes sure that a given child (descendant) of this container (e.g. ItemView) is visible
* @return false if scrolling is not supported or child is already visible
*/
virtual bool ScrollToChild(Actor child);
// Need to reshape the glyph as the font may be different in size.
const GlyphInfo& ellipsisGlyph = fontClient.GetEllipsisGlyph(fontClient.GetPointSize(glyphToRemove.fontId));
- if(!firstPenSet)
+ if(!firstPenSet || EqualsZero(glyphToRemove.advance))
{
const Vector2& position = *(elidedPositionsBuffer + indexOfEllipsis);
{
const unsigned int TOOLKIT_MAJOR_VERSION = 2;
const unsigned int TOOLKIT_MINOR_VERSION = 0;
-const unsigned int TOOLKIT_MICRO_VERSION = 51;
+const unsigned int TOOLKIT_MICRO_VERSION = 52;
const char* const TOOLKIT_BUILD_DATE = __DATE__ " " __TIME__;
#ifdef DEBUG_ENABLED