BUG 13637 and 13640 SOLVED

- Many incorrect operations to determine the scrollbar use for the frid in large forms
- Fix the incorrect operations, now the scrollbar and the form width is displayed correctly