Contour Weird Spacing in between Label and Input Type
I've got some problem with an empty gap in between my Label and Textfield which looks like below. The gap created pushes my Textfield a little bit down from their actual place. I'm using the new Contour to create the form.
As you can see from code generated below, there's like an empty spaces in between the Label and the Input type which I do not know where does it comes from.
Appreciate if someone can point me out on what needs to be done.
copy/paste form into wordpad, before '@model' there will show a blank space which you can't see in visual studio, select the space, find/replace all files in visual studio. Done.
Contour Weird Spacing in between Label and Input Type
I've got some problem with an empty gap in between my Label and Textfield which looks like below.
The gap created pushes my Textfield a little bit down from their actual place.
I'm using the new Contour to create the form.
As you can see from code generated below, there's like an empty spaces in between the Label and the Input type which I do not know where does it comes from.
Appreciate if someone can point me out on what needs to be done.
Comment author was deleted
Hi it's due to a bug in the asp.net mvc framework, removing whitespace from the view should take care of it
You can find the form view at the following location \Umbraco\plugins\umbracoContour\Views\Form.cshtml
Thanks. Issue resolved.
Hi Tim
Can you remove the whitespace from the sourcecode? Every time I upgrade I have to go through each file and remove the space.
Thanks
Martin
Comment author was deleted
@Martin yup will do, could you tell me where the problems are?
Comment author was deleted
Ok views have been updated to remove as much whitespace as possible
Hi Tim
It's on nearly practically every view!
Comment author was deleted
@Martin updated and will be part of 3.0.6 release
I can't seems to find any whitespace at all but the empty space keep showing in the site for both the input type and textarea.
@model Umbraco.Forms.Mvc.Models.FieldViewModel
<input type="email" name="@Model.Name" id="@Model.Id" value="@Model.Value" class="input-clear margin_b_10" value="Enter your email address"
@{if(Model.Mandatory||Model.Validate){<text>data-val="true"</text>}}
@{if (Model.Mandatory){<text> data-val-required="@Model.RequiredErrorMessage"</text>}}
@{if (Model.Validate){<text> data-val-regex="@Model.InvalidErrorMessage" data-regex="@Model.Regex"</text>}}
/>
and
@model Umbraco.Forms.Mvc.Models.FieldViewModel
<textarea name="@Model.Name" id="@Model.Id" rows="4" cols="50" value="Enter your fundraising story" class="input-clear"
@{if(Model.Mandatory||Model.Validate){<text>data-val="true"</text>}}
@{if (Model.Mandatory){<text> data-val-required="@Model.RequiredErrorMessage"</text>}}
@{if (Model.Validate){<text> data-val-regex="@Model.InvalidErrorMessage" data-regex="@Model.Regex"</text>}}
>@Model.Value</textarea>
copy/paste form into wordpad, before '@model' there will show a blank space which you can't see in visual studio, select the space, find/replace all files in visual studio. Done.
Cheers
Mark
Thanks mark, that solved my problem. High five to you
Cheers
Jeric
is working on a reply...