R&R input boxes don't resize correctly


In certain sequences of entering multiple long strings or numbers, The field is not resizing after a large number or string is entered.

Expected: The boxes / column widths will resize to fit the number input once the user exits the field.
Bug: Sometimes the boxes / columns don't resize. They stay way too long and only snap back into place after clicking into another box (sometimes) or refreshing the page.

Steps to Reproduce (reproduced in Chrome on Mac)
0. Clear your browser cache and use UAT site (3.2.1-RC1).
1. Log in as 'srmanager1' (or any user who fills out Requisitions)
2. Navigate to Requisitions > Create/Authorize
3. Select my facility (Nandumbo Health Center) and Family Planning Program, click Search.
4. For the top Requisition period, click Proceed. If there is already a requisition in progress, DELETE it. You want to start fresh with "Not Yet Started" before you click Proceed. This will make sure no existing columns have long data.
5. In the Requisition Form, you will paste in a sequence of long entries in using the steps as follows...
6. Get a long string with no numbers in your copy-paste clipboard, EG "long text going into this field with lots of letters and no numbers"
7. In Beginning Balance for first product, paste that long string. The field will immediately get wider and show your string briefly.
8. The field will quickly erase your string, leaving a blank field with a cursor. The field is still wide at this point. The field has an error "This field is required" and the row turns red. (I believe this is acceptable behavior so far.)
9. Tab to the next field, Total Received Quantity.
10. ERROR: The Beginning Balance field is still too wide. The expected behavior was for it to collapse back down when we left the field. Even if you tab out of this row into the next row, that field field never resizes smaller. The row stays red, which is correct.
Note: If you do type in a new, shorter beginning balance (e.g. '4'), that field will shrink down properly.

To recreate: Open R&R and add a number and a lot of text into the column, tab to the next column, enter another large number. The column will clear the text data, but the column doesn't resize.




Rachel Powers
November 2, 2017, 11:12 PM

Tagging you here since you said you knew the quick fix for this

Łukasz Lewczyński
November 7, 2017, 9:27 AM

I was unable to reproduce the bug by step in the ticket description. One time I saw this bug when I entered a number and a lot of text and I waited few seconds but after I clean the application cache I was unable to reproduce it too.


Nikodem Graczewski
November 7, 2017, 1:25 PM

Pasting the string into the input seems to reproduce this bug quite often.

Brandon Bowersox-Johnson
November 7, 2017, 3:37 PM

I just found a way to reproduce this, but it is not what is described in the ticket description right now. I will update the ticket description. I definitely think it is an edge case that is not critical. Team ILL needs to discuss today FYI

Can you review my new description and see if you can reproduce it today with those exact steps? Team Parrot was unable to reproduce, although Nikodem posted a clue that helped me reproduce it.


Joanna Bebak
November 13, 2018, 1:46 PM

I checked, and the issue is no longer valid - moving to Dead.




Rachel Powers


Story Points