summaryrefslogtreecommitdiff
path: root/addons/mail/static
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-05-26 09:37:16 +0200
committerGéry Debongnie <ged@odoo.com>2014-05-26 09:37:16 +0200
commit6e6ae4cbf94e9ff8a4cccab3da2417aec3dfbc0c (patch)
tree17dea0e194a4d3110723492283fe5aa3e8821f23 /addons/mail/static
parent779aabfc5b2908b8f2fd42a7c15f866c403cdc61 (diff)
[IMP] improves the scrolling behaviour
the mail menu is a client action, so not subject to the same template as regular views. so, it had to be patched to properly scroll like other views (meaning: the 'header', left menu and top menu are fixed) Also, changes the width of the searchbbar into a min-width css property, to allow it to grow more. The reason is that we don't want the searchbox to take two lines (or more), which will force the view_manager_header to be higher, and which will cause slight issues with the scrollbar (absolutely positioned)
Diffstat (limited to 'addons/mail/static')
-rw-r--r--addons/mail/static/src/css/mail.css14
-rw-r--r--addons/mail/static/src/xml/mail.xml8
2 files changed, 19 insertions, 3 deletions
diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css
index 0abd8ab1b4e..b97040562d7 100644
--- a/addons/mail/static/src/css/mail.css
+++ b/addons/mail/static/src/css/mail.css
@@ -683,6 +683,20 @@
margin-right: 212px;
}
+/* ----------- SCROLLING AREA ----------- */
+.openerp .oe_mail_wall .oe_view_manager_header {
+ height: 47px;
+}
+
+.openerp .oe_mail_wall > div {
+ position: absolute;
+ overflow: auto;
+ top: 48px;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
/* ----------- INBOX INTEGRATION ----------- */
.openerp .oe_mail_wall .oe_mail{
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index 77aeef0b5b9..b2d71b6223e 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -191,9 +191,11 @@
</tr>
</tbody>
</table>
- <div class="oe_searchview_drawer_container"/>
- <div class="oe_mail-placeholder"></div>
- <aside class="oe_mail_wall_aside"></aside>
+ <div>
+ <div class="oe_searchview_drawer_container"/>
+ <div class="oe_mail-placeholder"></div>
+ <aside class="oe_mail_wall_aside"></aside>
+ </div>
</div>
<!--