Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034818Retail ModulesWeb POSpublic2016-12-23 11:072016-12-24 23:08
guilleaer 
Retail 
normalminoralways
newopen 
5
 
 
No
0034818: [UX] Font Resize Mechanism used by "Render Product Line" component is not the same used by "Render Order Line" component
Font Resize Mechanism used by "Render Product Line" component is not the same used by "Render Order Line" component.

It would be great -if it is possible- to use the same approach. It will simplify the code and will give to the "Render Product Line" component an advanced behavior
N/A
Render Product Line component was refactored in issue 34619. However the algorithm used to resize the font for the price is quite simple:
Font size of the price is just reduced when this condition match

var shouldResizeWork = ((enyo.Panels.isScreenNarrow() && document.body.clientWidth <= 445) || (!enyo.Panels.isScreenNarrow() && document.body.clientWidth <= 874));

together with this one:

OB.I18N.formatCurrency(this.model.get('currentStandardPrice')).length > 11 && !searchTab && !hideProductImages && shouldResizeWork
No tags attached.
related to defect 0034619 closed guilleaer [UX] The product button is not readable with small aspect ratios or high prices 
blocks defect 0034538 closed Retail Big total amounts on WebPOS are breaking the layout 
Issue History
2016-12-23 11:07guilleaerNew Issue
2016-12-23 11:07guilleaerAssigned To => Retail
2016-12-23 11:07guilleaerTriggers an Emergency Pack => No
2016-12-23 11:11guilleaerRelationship addedrelated to 0034619
2016-12-24 23:07dbazSummaryFont Resize Mechanism used by "Render Product Line" component is not the same used by "Render Order Line" component => [UX] Font Resize Mechanism used by "Render Product Line" component is not the same used by "Render Order Line" component
2016-12-24 23:08dbazRelationship addedblocks 0034538

There are no notes attached to this issue.