Community
Participate
Working Groups
On some machines the div containing the text of the buttons are sometimes too small so that the text wraps. For some reason this is only reproducable on certain machines. We tested others with very similar configuration, but the glitch did not show up.
The reason is that the computeTextSize function returns smaller values (in our test case 72, compared to 74 on the other machine), even with exactly the same font and string. The function uses scrollWidth/scrollHeight, wich only returns whole numbers. Using getBoundingClientRect() returns 72.25 (still 74 on the other machine). When rounding that up with Math.ceil, the text does not wrap anymore. For now using getBoundingClientRect() and Math.ceil solves the issue and works fine on all browser.
Fixed in CVS HEAD. Since there was one red js-test in IE9, i implented the alternative computation method only for gecko browser.