1
My edge doesn’t cover everything as it would like, how could it make the edge go up before the end of the Limite
?
Meu css:
.conteudo
{
padding: 20px;
}
fieldset
{
border: 1px solid #000;
padding: 20px;
height: 200px;
}
<div class="conteudo">
<fieldset>
<legend>Limite</legend>
</fieldset>
</div>
Whole code:
@using SoftluxWebCore.ViewModels.Tabelas.Financeiro
<!-- Link to CSS -->
<link href="~/css/Tabelas/Financeiro/FormaPagamento.css" rel="stylesheet" />
@using (Html.BeginForm())
{
using (Html.DevExtreme().ValidationGroup())
{
@Html.AntiForgeryToken()
<div class="divFormulario">
@(Html.DevExtreme().Form<FormaPagamentoViewModel>()
.ID("formularioCadastro")
.ShowValidationSummary(false)
.Items(items =>
{
items.AddGroup()
.Items(groupItems =>
{
groupItems.AddSimpleFor(m => m.Fpg_descricao)
.Editor(e => e.TextBox().Width("350px"));
groupItems.AddSimpleFor(m => m.Fpg_quantidade)
.Editor(e => e.NumberBox().Width("70px").OnKeyPress("key_press"));
groupItems.AddSimpleFor(m => m.Fpg_LimiteDesconto)
.Editor(e => e.NumberBox());
groupItems.AddSimpleFor(m => m.Fpg_acrescimo)
.Editor(e => e.NumberBox());
groupItems.AddSimpleFor(m => m.Fpg_desconto)
.Editor(e => e.NumberBox());
});
items.AddSimpleFor(m => m.Fpg_situacao)
.Label(l => l.Visible(false))
.Editor(editor => editor.CheckBox().ID("sit").Text("Ativo"));
items.AddSimpleFor(m => m.Fpg_orcamento).CssClass("orc")
.Label(l => l.Visible(false))
.Editor(editor => editor.CheckBox().ID("orc").Text("Padrão para Orçamento"));
})
.FormData(Model)
)
</div>
<div class="conteudo">
<fieldset>
<legend>Limite</legend>
</fieldset>
</div>
<br />
<button type="submit" class="btn btn-success btn-sucesso"><i class="far fa-check-circle"></i> Gravar</button>
<button type="reset" class="btn btn-danger btn-cancelar" onclick="parent.fecharJanela('CadastroFormaPagamento')"><i class="far fa-times-circle"></i> Cancelar</button>
<script type="text/javascript">
function key_press(e) {
var event = e.event,
str = event.key || String.fromCharCode(event.which);
if (/^[\.\,e]$/.test(str))
event.preventDefault();
}
</script>
}
}
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
Code for creating modal:
function geradorCodigo(idjanela, titulojanela, urljanela, largura, altura, aoFechar) {
document.getElementById("geradorCodigos").innerHTML = "<div id='" + idjanela + "'></div>";
var janela = $("#" + idjanela).kendoWindow({
width: largura,
height: altura,
title: titulojanela,
iframe: true,
modal: true,
close: aoFechar,
content: ".." + urljanela,
}).data("kendoWindow").open();
janela.center();
}
I could not reproduce your image error. I even edited your post add the snippet and it answered, which browser is testing? may need to add some Webkit
– Getulio Rafael Ferreira
I use google Chrome, I do not know what is Webkit
– Jeff Henrique
But I work with windows, I wonder if that could be it?
– Jeff Henrique
I reproduced your code, it is correct, see here https://jsfiddle.net/gferreiraa/pu2yos41/
– Getulio Rafael Ferreira
it is possible to share this whole modal code?
– Getulio Rafael Ferreira
I’ll edit the post
– Jeff Henrique
Let’s go continue this discussion in chat.
– Getulio Rafael Ferreira