Hello
To reproduce use this page:
test.html
and this code:
In IE8 and Firefox the created window will match the blue div exactly.
In IE9 it will be positioned with 2px offset (to the right-bottom)
In some scenarios it causes wrong desktop actions.
To reproduce use this page:
test.html
<!DOCTYPE html>
<
style
>
#div1
{
background:blue;
position:absolute;
top:40px; left:40px;
width: 300px; height:299px;
}
</
style
>
<
div
id
=
div1
></
div
>
and this code:
var rect = Manager.Current.ActiveBrowser.Find.ById(
"div1"
).GetRectangle();
Form form =
null
;
form =
new
Form();
form.BackColor = Color.Red;
form.FormBorderStyle = FormBorderStyle.None;
form.Opacity = 0.7;
form.Show();
form.Location = rect.Location;
form.Size = rect.Size;
for
(var i = 0; i < 10; i++) {
form.Activate();
form.Refresh();
Thread.Sleep(500);
}
form.Dispose();
In IE8 and Firefox the created window will match the blue div exactly.
In IE9 it will be positioned with 2px offset (to the right-bottom)
In some scenarios it causes wrong desktop actions.