[IMP] form tooltip formatting, provide more horizontal room for insanely huge tooltips

lp bug: https://launchpad.net/bugs/907187 fixed

bzr revid: xmo@openerp.com-20111221155607-lamxvq4z8hm0yl5t
This commit is contained in:
Xavier Morel
2011-12-21 16:56:07 +01:00
parent 0d5bddc89f
commit 67770b12ec
3 changed files with 5 additions and 4 deletions
+3
View File
@@ -1114,6 +1114,9 @@ label.error {
font-weight: bold;
font-size: 13px;
}
.openerp .oe_tooltip_help {
white-space: pre-wrap;
}
.openerp .oe_tooltip_technical {
padding: 0 0 4px 0;
margin: 5px 0 0 15px;
+1 -1
View File
@@ -790,7 +790,7 @@ openerp.web.form.Widget = openerp.web.Widget.extend(/** @lends openerp.web.form.
trigger = trigger || this.$element;
options = _.extend({
delay: 1000,
maxWidth: openerp.connection.debug ? '300px' : '200px',
maxWidth: '500px',
content: function() {
var template = widget.template + '.tooltip';
if (!QWeb.has_template(template)) {
+1 -3
View File
@@ -837,9 +837,7 @@
<div class="oe_tooltip_string" t-if="widget.string">
<t t-esc="widget.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
</div>
<p t-if="widget.help" class="oe_tooltip_help">
<t t-esc="widget.help"/>
</p>
<p t-if="widget.help" class="oe_tooltip_help"><t t-esc="widget.help"/></p>
<ul t-if="debug" class="oe_tooltip_technical">
<li data-item="field" t-if="widget.name">
<span class="oe_tooltip_technical_title">Field:</span>