Browse Source

May 29 [UPDT] : Bug Fixed 'sticky_pivot_view'

pull/254/head
AjmalCybro 2 years ago
parent
commit
e17186d308
  1. 40
      sticky_pivot_view/static/src/css/main.css
  2. 2
      sticky_pivot_view/static/src/xml/pivot.xml

40
sticky_pivot_view/static/src/css/main.css

@ -4,31 +4,43 @@
z-index : 10;
}
.cb_sticky tr th{
tbody tr .text-nowrap{
background-color: white;
left : 0;
outline: 1px solid #dee2e6;
}
.cb_sticky tr th {
outline: 1px solid #dee2e6;
border: none;
outline-offset: -1px;
left: 0;
position: sticky !important;
background-color: white;
}
.cb_sticky_first_child{
z-index: 10;
thead tr .cb_sticky_first_child{
position: sticky;
}
tbody .o_pivot_header_cell_opened {
tbody tr .o_pivot_header_cell_closed{
position: sticky;
left : 0;
left: 0;
outline: 1px solid #dee2e6;
}
tbody .o_pivot_header_cell_closed {
tbody tr .o_pivot_header_cell_opened{
position: sticky;
left : 0;
left: 0;
outline: 1px solid #dee2e6;
}
.o-dropdown.dropdown.o_group_by_menu{
position: relative !important;
display: block !important;
}
th .o-dropdown.dropdown.o_group_by_menu > .o-dropdown--menu.dropdown-menu{
position: absolute !important;
left: 105% !important;
top: 100% !important;
}
tbody .dropdown > .dropdown-menu.o_pivot_field_menu.show {
left : 104%;
margin: -20px 0px 0px 0px;
}

2
sticky_pivot_view/static/src/xml/pivot.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<templates>
<t t-name="PivotRenderer" t-inherit="web.PivotRenderer" t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('o_pivot')]" position="attributes">
<attribute name="style">overflow-x:unset</attribute>
@ -12,5 +11,4 @@
<attribute name="class">cb_sticky_first_child</attribute>
</xpath>
</t>
</templates>
Loading…
Cancel
Save