[IMP] Improved layout outline debugging feature
bzr revid: fme@openerp.com-20120418161039-wztsy1ss7espeo8v
This commit is contained in:
parent
c7e392f18e
commit
70a48b74c9
|
@ -1777,23 +1777,10 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
.openerp .oe_layout_debugging .oe_form_group {
|
||||
border: 2px dashed red;
|
||||
outline: 2px dashed red;
|
||||
}
|
||||
.openerp .oe_layout_debugging .oe_form_group_cell {
|
||||
border: 1px solid blue;
|
||||
padding-bottom: 1em;
|
||||
}
|
||||
.openerp .oe_layout_debugging .oe_layout_debug_cell {
|
||||
color: white;
|
||||
background: #669966;
|
||||
font-size: 80%;
|
||||
text-align: center;
|
||||
}
|
||||
.openerp .oe_layout_debugging .oe_layout_debug_cell {
|
||||
display: block;
|
||||
}
|
||||
.openerp .oe_layout_debug_cell {
|
||||
display: none;
|
||||
outline: 1px solid blue;
|
||||
}
|
||||
.openerp .oe_debug_view {
|
||||
float: left;
|
||||
|
|
|
@ -1484,19 +1484,9 @@ $colour4: #8a89ba
|
|||
// Debugging stuff {{{
|
||||
.oe_layout_debugging
|
||||
.oe_form_group
|
||||
border: 2px dashed red
|
||||
outline: 2px dashed red
|
||||
.oe_form_group_cell
|
||||
border: 1px solid blue
|
||||
padding-bottom: 1em
|
||||
.oe_layout_debug_cell
|
||||
color: white
|
||||
background: #696
|
||||
font-size: 80%
|
||||
text-align: center
|
||||
.oe_layout_debug_cell
|
||||
display: block
|
||||
.oe_layout_debug_cell
|
||||
display: none
|
||||
outline: 1px solid blue
|
||||
|
||||
.oe_debug_view
|
||||
float: left
|
||||
|
|
|
@ -953,10 +953,10 @@ instance.web.form.FormRenderingEngine = instance.web.Class.extend({
|
|||
},
|
||||
toggle_layout_debugging: function() {
|
||||
if (!this.$target.has('.oe_layout_debug_cell:first').length) {
|
||||
this.$target.find('[title]').removeAttr('title');
|
||||
this.$target.find('.oe_form_group_cell').each(function() {
|
||||
var text = 'W:' + ($(this).attr('width') || '') + ' - C:' + $(this).attr('colspan'),
|
||||
$span = $('<span class="oe_layout_debug_cell"/>').text(text);
|
||||
$span.prependTo($(this));
|
||||
var text = 'W:' + ($(this).attr('width') || '') + ' - C:' + $(this).attr('colspan');
|
||||
$(this).attr('title', text);
|
||||
});
|
||||
}
|
||||
this.$target.toggleClass('oe_layout_debugging');
|
||||
|
|
Loading…
Reference in New Issue