From c06ec571cd45cdad6146f3da5f5063f452e007b3 Mon Sep 17 00:00:00 2001 From: Joseph Caburnay Date: Mon, 10 Aug 2020 07:23:41 +0000 Subject: [PATCH] [FIX] point_of_sale: large scroll bars This commit fixes the error when opening a session when large scroll bars is activated in the config. closes odoo/odoo#55751 X-original-commit: ab2301c032bc146410762efd0c7c2a5b10801b4b Signed-off-by: pimodoo --- addons/point_of_sale/static/src/css/pos.css | 4 ++-- addons/point_of_sale/static/src/js/Chrome.js | 2 +- addons/point_of_sale/static/src/xml/Chrome.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 62321e1932c..427bb42c28f 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -862,7 +862,7 @@ td { .pos .product-list-container { overflow: hidden; - overflow-y: scroll; + overflow-y: auto; flex-grow: 1; } @@ -1331,7 +1331,7 @@ td { display: flex; flex-grow: 1; flex-wrap: wrap; - overflow-y: scroll; + overflow-y: auto; } .screen .left-content{ overflow-x: hidden; diff --git a/addons/point_of_sale/static/src/js/Chrome.js b/addons/point_of_sale/static/src/js/Chrome.js index e01a434d9a8..41bb4e28d58 100644 --- a/addons/point_of_sale/static/src/js/Chrome.js +++ b/addons/point_of_sale/static/src/js/Chrome.js @@ -372,7 +372,7 @@ odoo.define('point_of_sale.Chrome', function(require) { } if (this.env.pos.config.iface_big_scrollbars) { - this.state.uiState.hasBigScrollBars = true; + this.state.hasBigScrollBars = true; } this._disableBackspaceBack(); diff --git a/addons/point_of_sale/static/src/xml/Chrome.xml b/addons/point_of_sale/static/src/xml/Chrome.xml index 6c2d3c5f46d..17593b2f31a 100644 --- a/addons/point_of_sale/static/src/xml/Chrome.xml +++ b/addons/point_of_sale/static/src/xml/Chrome.xml @@ -2,7 +2,7 @@ -
+