Browse Source

May 29 [UPDT] : Bug Fixed 'sticky_pivot_view'

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

32
sticky_pivot_view/static/src/css/main.css

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

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

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