[IMP] point_of_sale: order selector now scrolls in case of overflow.

This commit is contained in:
Frederic van der Essen
2014-11-25 17:10:11 +01:00
committed by Frédéric van der Essen
parent fdaff3e52b
commit 3ec6b7cb52
3 changed files with 23 additions and 5 deletions
+19 -2
View File
@@ -54,6 +54,9 @@ td {
.oe_hidden{
display: none !important;
}
.oe_invisible{
visibility: hidden !important;
}
.clearfix:after {
content:" ";
display: block;
@@ -317,6 +320,11 @@ td {
right:0;
top:0;
height:100%;
display: -webkit-flex;
display: flex;
}
.pos .pos-rightheader > * {
border-right: 1px solid #292929;
}
.pos .order-button{
@@ -347,6 +355,8 @@ td {
height: 45px;
border-bottom: solid 1px rgb(196, 196, 196);
box-shadow: none;
-webkit-flex-shrink: 0;
flex-shrink: 0;
}
.pos .order-button .order-sequence{
@@ -383,12 +393,19 @@ td {
}
.pos .order-selector {
display: inline-block;
display: -webkit-flex;
display: flex;
-webkit-flex: 1;
flex: 1;
}
.pos .orders {
display: inline-block;
display: -webkit-flex;
display: flex;
vertical-align: top;
margin-left: 8px;
overflow: hidden;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/* c) The session buttons */
@@ -1015,6 +1015,9 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
// -------- Misc ---------
this.notification = new module.SynchNotificationWidget(this,{});
this.notification.appendTo(this.$('.pos-rightheader'));
this.close_button = new module.HeaderButtonWidget(this,{
label: _t('Close'),
action: function(){
@@ -1035,8 +1038,6 @@ function openerp_pos_widgets(instance, module){ //module is instance.point_of_sa
});
this.close_button.appendTo(this.$('.pos-rightheader'));
this.notification = new module.SynchNotificationWidget(this,{});
this.notification.appendTo(this.$('.pos-rightheader'));
if(this.pos.config.use_proxy){
this.proxy_status = new module.ProxyStatusWidget(this,{});
+1 -1
View File
@@ -12,7 +12,7 @@
</div>
<div class="pos-rightheader">
<div class="order-selector">
<span class="orders"></span>
<span class="orders touch-scrollable"></span>
<span class="order-button square neworder-button"><i class='fa fa-plus' /></span>
<span class="order-button square deleteorder-button"><i class='fa fa-minus' /></span>
</div>