Problem description:
Right after creating an empty TextBox it already contains an empty string
as its 1st row. So, if trying to add other rows with TextBox::addRow()
these rows will be 2nd and further. So the first row is an empty string:
gcn::TextBox tb;
tb.addRow("test row 1");
tb.addRow("test row 2");
The result will look like this:
+----------+
| | <-empty string row
|test row 1|
|test row 2|
+----------+
Expected behavior:
The TextBox should be completely empty right after creation, it should not
contain even an empty string. So, adding row the first time will add the
row as 1st row.
Possible solution suggestion:
Maybe it will be a right solution to check in addRow() function if this is
the first row to be added and the TextBox text is an empty string then
simply do setText, all subsequent addRow() calls should be done the way it
currently works.
Original issue reported on code.google.com by igagis@gmail.com on 1 May 2008 at 8:22
Original issue reported on code.google.com by
igagis@gmail.com
on 1 May 2008 at 8:22