Layout & spacing for nm customfield header and link widget

This commit is contained in:
Nathan Gray 2012-04-05 22:30:06 +00:00
parent eb64007026
commit a5e6dd855b
2 changed files with 8 additions and 2 deletions

View File

@ -1209,6 +1209,9 @@ var et2_nextmatch_customfields = et2_customfields_list.extend(et2_INextmatchHead
init: function() {
this.nextmatch = null;
this._super.apply(this, arguments);
// Specifically take the whole column
this.table.css("width", "100%");
},
destroy: function() {

View File

@ -117,7 +117,7 @@ var et2_link_to = et2_inputWidget.extend({
.appendTo(this.div).addClass("status").hide();
// Need a div for link-to widget
this.link_div = $j(document.createElement("div")).appendTo(this.div);
this.link_div = $j(document.createElement("div")).css("margin-bottom", "1ex").appendTo(this.div);
// Link comment field
this.comment = $j(document.createElement("input"))
@ -380,7 +380,10 @@ var et2_link_entry = et2_inputWidget.extend({
// Search input
this.search = $j(document.createElement("input")).attr("type", "search")
.focus(function(){if(!self.options.application) {self.search.css("width", "60%");self.app_select.show();}})
.focus(function(){if(!self.options.application) {
// Adjust width, leave room for app select & link button
self.search.css("width", "50%");self.app_select.show();
}})
.css("width", opt_count == 1 ? "100%" : "60%")
.appendTo(this.div);