Fix CodeMirror borders on dialogues.

pull/3/head
Arun Kollan 2016-04-13 12:24:46 +01:00 committed by Dave Page
parent 9e2d349591
commit 0fb0820c64
2 changed files with 22 additions and 4 deletions

View File

@ -277,6 +277,11 @@ iframe {
padding-right: 3px;
padding-left: 3px;
}
.pgadmin-controls.SQL {
min-width: 290px;
padding-right: 3px;
padding-left: 1px;
}
.pgadmin-controls > textarea.form-control,
.pgadmin-controls > textarea.form-control[disabled] {
min-width: 100%;
@ -856,11 +861,20 @@ td.edit-cell.editable.sortable.renderable.editor {
}
.sql_field_height_300 {
height: 300px;
height: 340px;
}
.sql_field_height_400 {
height: 400px;
height: 440px;
}
.tab-pane.SQL {
padding: 0px 7px 0px 0px;
}
.pgadmin-control-group.sql {
margin: 0px;
padding: 0px;
}
.nav-tabs{
@ -930,3 +944,7 @@ ul.nav.nav-tabs {
.pgadmin-control-group span.wcTabIcon {
padding-left: 20px;
}
.pgadmin-controls.SQL>.CodeMirror {
height: 500px!important;
}

View File

@ -519,7 +519,7 @@
' id="<%=hId%>" aria-controls="<%=cId%>">',
'<%=label%></a></li>'].join(" ")),
'panel': _.template(
'<div role="tabpanel" class="tab-pane col-sm-12 col-md-12 col-lg-12 col-xs-12 fade" id="<%=cId%>" aria-labelledby="<%=hId%>"></div>'
'<div role="tabpanel" class="tab-pane <%=label%> col-sm-12 col-md-12 col-lg-12 col-xs-12 fade" id="<%=cId%>" aria-labelledby="<%=hId%>"></div>'
)},
render: function() {
this.cleanup();
@ -1307,7 +1307,7 @@
var SqlTabControl = Backform.SqlTabControl = Backform.Control.extend({
defaults: {
label: "",
controlsClassName: "pgadmin-controls col-sm-12",
controlsClassName: "pgadmin-controls col-sm-12 SQL",
extraClasses: [],
helpMessage: null
},