Text elided with gfx::ElideText doesn't fit available_pixel_width |
||||||
Issue description
Text returned from gfx::ElideText may be wider than requested |available_pixel_width|.
This simple test fails.
TEST(TextEliderTest, ElideTextFitAvailableWidth) {
const base::string16 kTestText = ASCIIToUTF16("Test");
const FontList font_list;
const float kTestWidth = GetStringWidthF(kTestText, font_list) - 0.001f;
base::string16 elided_text =
ElideText(kTestText, font_list, kTestWidth, ELIDE_TAIL);
EXPECT_LE(GetStringWidthF(elided_text, font_list), kTestWidth);
}
,
Jul 6 2016
,
Sep 14 2016
msw@, can you take a look? You are an OWNER of //gfx.
,
Sep 14 2016
Sorry, I'm not actively working in this area.
,
Jan 10 2017
Issue 625977 has been merged into this issue.
,
Feb 20 2018
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks! |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by tmonius...@opera.com
, Jul 6 2016