widgets::textarea rows and cols attributes
Brought to you by:
artyom-beilis
If both rows and cols attributes are set, the space between these two attributes is missing.
struct my_form : public cppcms::form { cppcms::widgets::textarea msg; my_form(){ msg.message(_("Type Message Here")); msg.rows(2); msg.cols(80); add(msg); } };
yields (note the missing space in rows="2"cols):
<label for="error">Type Message Here</label><span class="cppcms_form_input"><textarea id="error" name="_2" rows="2"cols="80"></textarea></span>
Changing line 727 for form.cpp from
if(rows_ >= 0) { output<<"rows=\""<< cint(rows_) << "\""; }
to
if(rows_ >= 0) { output<<"rows=\""<< cint(rows_) << "\" "; }
should be able to fix this issue.
Anonymous
Fixed in changeset #2245