mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

TextBox row 1st is empty string #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
guichan 0.8.0

Original comment by igagis@gmail.com on 1 May 2008 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 4 Aug 2008 at 8:01