Page 1 of 1

EditBox Carat Width Problem

Posted: Tue Jun 19, 2012 09:37
by zerro
When I get Carat Width in FalEditbox.cpp, using the code below:

Code: Select all

 const float caret_width = caret_imagery.getBoundingRect(*d_window, text_area).getWidth();


but the result is no expected, it seems inside function getBoundingRect,

Code: Select all

 Rect bounds(0,0,0,0)

causes the wrong calculate, the left and top member of bounds will be used to as operand of ceguimin, should this two be initialized as a larger number?

Re: EditBox Carat Width Problem

Posted: Tue Jun 19, 2012 10:00
by CrazyEddie
Hi,

I was able to look at this briefly, and I think that you are correct. I have added a ticket for it so that it can be tested and corrected: http://www.cegui.org.uk/mantis/view.php?id=841

Thanks,

CE

Re: EditBox Carat Width Problem

Posted: Wed Jun 20, 2012 07:11
by CrazyEddie
For info, I fixed this issue yesterday. The fix is in branches v0-7 and up.

CE.