Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035510Retail ModulesWeb POSpublic2016-12-29 18:222017-04-26 18:07
dbaz 
jorge-garcia 
normalmajoralways
closedfixed 
5
 
RR17Q1.1RR17Q1.1 
guilleaer
Coding ( Testing )
pi
No
0035510: [UX] Customer button gets 'ellipsis' when it is not needed
The customer button (the one in the top of the receipt) gets 'ellipsis' when it is not needed. It doesn't happen in 16Q4.

http://screencast.com/t/iwcXrhu9 [^]

The 'ellipsis' NEVER should be performed if there is free horizontal space, independently of the length of the button labels. In the 'Proposed Solution' section there is an example of how it should behave.
Login into the WebPOS with base sampledata.
The width and ellipsis of these buttons should behave like this example:

https://jsfiddle.net/r77t19zt/2/ [^]

As you can see, the own CSS:
* Takes advantage of using all the available space to show as much content as possible.
* Ensures that both buttons are always in the same line.
* Gives more priority to the full customer visualization while start shrinking -flex-shrink- (just in case of large addresses).
* Sets a maximum width -max-width: 70%;- (just in case of very very large button labels).
No tags attached.
blocks defect 0034831 closed jorge-garcia [UX] Customer button gets 'ellipsis' when it is not needed 
Issue History
2017-03-14 13:59marvintmTypedefect => backport
2017-03-14 13:59marvintmTarget Version => RR17Q1.1
2017-04-26 12:03hgbotCheckin
2017-04-26 12:03hgbotNote Added: 0096195
2017-04-26 12:03hgbotStatusscheduled => resolved
2017-04-26 12:03hgbotResolutionopen => fixed
2017-04-26 12:03hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/45d8c72790f7778bea8e93b61867305901ce5b6a [^] => http://code.openbravo.com/retail/backports/3.0RR17Q1.1/org.openbravo.retail.posterminal/rev/34eb7c80d64511d24fecf83868bb53535314f420 [^]
2017-04-26 18:07guilleaerStatusresolved => closed
2017-04-26 18:07guilleaerFixed in Version => RR17Q1.1

Notes
(0096195)
hgbot   
2017-04-26 12:03   
Repository: retail/backports/3.0RR17Q1.1/org.openbravo.retail.posterminal
Changeset: 34eb7c80d64511d24fecf83868bb53535314f420
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Apr 26 12:02:25 2017 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1.1/org.openbravo.retail.posterminal/rev/34eb7c80d64511d24fecf83868bb53535314f420 [^]

Fixed issue 35510: [UX] Customer button gets 'ellipsis' when it is not
needed

* Used flexible box for customer buttons in pointofsale tab of webPOS.
* Remove useless css classes.

---
M web/org.openbravo.retail.posterminal/css/obpos-main.css
M web/org.openbravo.retail.posterminal/js/components/bplocation.js
M web/org.openbravo.retail.posterminal/js/components/businesspartner_selector.js
M web/org.openbravo.retail.posterminal/js/components/order.js
---