I found that the grids used jqGrid 4.4.0 has wrong width on one computer. I examined the problem in detailes and found out the following problem.
The computer had Windows 7 operation system with Internet Explorer 9. The display used on the computer had the high DPI resolution. To have exact sizes displayed it was set custom text size (DPI) (see here for more information about the setting). The setting on the computer was
In general such setting is absolutely OK, but the function cellWidth worked incorrect with the settings. I debugged the code and found out that the value of testCell used in the function has the value 5.02 instead of 5. So the function cellWidth worked like with old Google Chrome browser and one had scroll bars in all grids.
To fix the problem one could change the last line of cellWidth from
to something like the following
Thanks for this.
This is the case if the font DPI is greater, but what if it is little scale?
I should test this!?!
I suppose that the effect will exist only on scaling >144%, but it is not so important. It's important just that the value of testCell must be not exactly equal to 5. So one have to adjust the code so that some intervals of values, which are close to 5, will be interpreted in the same way as 5.
Most Users Ever Online: 215
Currently Online: toadicusrex
Currently Browsing this Page:
Guest Posters: 447
Newest Members: blgsyrmhnds, toadicusrex, re-gor, NoSalt, 80vele, George
Moderators: tony (7580), Rumen[Trirand] (81)
Administrators: admin (61)