Thanks, The modified test displays the size. It is 1924x1182 if not resized, and 1901 x 1097 if it is manually resized to cover the visible area (full screen less taskbar).
The bug happens also on Linux. I use FC 17 with a reduced size window, so I can test what happens with smaller screens. It is not pretty in general, most scripts behave very badly if the screen is not (very) large. Here are the results:
Without resizing (the size of the pseudo screen is 1143 x 775):
Size: 1141 x 729
I did not see it the last time, but in fact the window is also too high on FC 17 (but the correct width). If I re-size it manually, I get:
Size: 1140 x 695
Give or take 1 pixel.
More fun, the resizing work "in reverse". I select Resize from the title bar of the window, I have to move the mouse in the opposite direction of what is indicated by the "right angle" cursor. Pretty strange, but maybe an FC bug.
-- bitli
"use strict";
function MainDialog()
{
this.__base__ = Dialog;
this.__base__();
this.onReturn = function() {
// If closed withour resizing:
// Size: 1924 x 1182 (screen is 1920 x 1200)
// If resized to cover the visible area:
// Size: 1901 x 1097
Console.writeln("Size: " + this.width + " x " + this.height);
}
}
MainDialog.prototype = new Dialog;
function main()
{
console.show();
var dialog = new MainDialog("TEST");
dialog.width =10000;
dialog.height =10000;
dialog.execute();
}
main();