Confirmed users, Bureaucrats and Sysops emeriti
2,976
edits
(landing first phase of dialog size collection) |
(should specify em unit in output) |
||
| Line 7: | Line 7: | ||
This way, testers can independently of language skills help in finding out if the dialog is properly sized, and if not, use the | This way, testers can independently of language skills help in finding out if the dialog is properly sized, and if not, use the | ||
javascript:(function(){var p=2;var cs=window.getComputedStyle(document.documentElement,null);var fs=cs.getPropertyCSSValue('font-size').getFloatValue(5);var w=cs.getPropertyCSSValue('width').getFloatValue(5);var h=cs.getPropertyCSSValue('height').getFloatValue(5);prompt('Dialog size:', 'width: '+Math.ceil(w/fs*p)/p+'; height: '+Math.ceil(h/fs*p)/p+';');})(); | javascript:(function(){var p=2;var cs=window.getComputedStyle(document.documentElement,null);var fs=cs.getPropertyCSSValue('font-size').getFloatValue(5);var w=cs.getPropertyCSSValue('width').getFloatValue(5);var h=cs.getPropertyCSSValue('height').getFloatValue(5);prompt('Dialog size:', 'width: '+Math.ceil(w/fs*p)/p+'em; height: '+Math.ceil(h/fs*p)/p+'em;');})(); | ||
showsize bookmarklet to figure out a good size and create a patch. | showsize bookmarklet to figure out a good size and create a patch. | ||