# WebDialog Bug...

**URL:** <https://forum.xojo.com/t/webdialog-bug/8309>\
**Category:** Web\
**Created:** [May 6, 2013, 1:01pm UTC](https://forum.xojo.com/t/webdialog-bug/8309 "2013-05-06T13:01:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [May 6, 2013, 1:01pm UTC](https://forum.xojo.com/t/webdialog-bug/8309/1 "2013-05-06T13:01:04Z")

</div>

I’m duplicating here as this probably seems a better place to put things now as opposed to the NUG!

I’m creating dynamic controls in a webapp. Each new control will have the left and top values set dynamically as well. Works fine on a webpage but I’m trying to do this in a webdialog and I’m running into a problem.

The left and top values of the webdialog refer to itself and don’t take into account it’s position on the webpage. When I create the control it’s position is therefore created on the page not the dialog.

The Webdialog pages seem to be implemented with layers so the left property makes a bit more sense.

Thinking I may need to do some maths  
(browser width/2) - (dialog width/2)  
Something like that…

I’ll raise a Feedback Request when I can attach the example project.

---

<div class="post-metadata">

**Author:** ![Jason\_Adams](https://forum.xojo.com/user_avatar/forum.xojo.com/jason_adams/32/13625_2.png) [@Jason\_Adams](https://forum.xojo.com/u/Jason_Adams)\
**Post date:** [May 6, 2013, 2:23pm UTC](https://forum.xojo.com/t/webdialog-bug/8309/2 "2013-05-06T14:23:54Z")

</div>

I’ve struggled with WebDialogs in the past, talked to Xojo Inc., and they confirmed that it’s a known issue. The problem continues with X/Y coordinates within WebDialog controls. I’ve never been completely stopped by it, so I just look forward to the bug(s) being fixed.

---

<div class="post-metadata">

**Author:** ![Bob\_Keeney](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bob\_Keeney](https://forum.xojo.com/u/Bob_Keeney)\
**Post date:** [May 6, 2013, 2:25pm UTC](https://forum.xojo.com/t/webdialog-bug/8309/3 "2013-05-06T14:25:19Z")

</div>

WebDialog’s and coordinates are pretty ugly. One dialog is generally not a big deal but if that dialog calls a dialog then all bets are off. 🙂

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [May 6, 2013, 3:06pm UTC](https://forum.xojo.com/t/webdialog-bug/8309/4 "2013-05-06T15:06:24Z")

</div>

Gives me a bit of a headache but such is life. Suddenly clicked layers were being used!

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [May 7, 2013, 11:03am UTC](https://forum.xojo.com/t/webdialog-bug/8309/5 "2013-05-07T11:03:48Z")

</div>

Feedback Request 26549.

(Anyone know how I create a link to feedback from within the forum - I’ve seen it done - guessing its a URL?)

---

<div class="post-metadata">

**Author:** ![Jay\_Madren](https://forum.xojo.com/user_avatar/forum.xojo.com/jay_madren/32/6425_2.png) [@Jay\_Madren](https://forum.xojo.com/u/Jay_Madren)\
**Post date:** [May 7, 2013, 11:19am UTC](https://forum.xojo.com/t/webdialog-bug/8309/6 "2013-05-07T11:19:37Z")

</div>

[quote=8008:@Patrick Delaney]  
(Anyone know how I create a link to feedback from within the forum - I’ve seen it done - guessing its a URL?)[/quote]  
In Feedback, click the gear and choose Copy Sharing Link. Then just paste that here and the forum will automatically make it a link.

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [May 7, 2013, 12:10pm UTC](https://forum.xojo.com/t/webdialog-bug/8309/7 "2013-05-07T12:10:52Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Patrick\_Delaney](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_delaney/32/1123_2.png) [@Patrick\_Delaney](https://forum.xojo.com/u/Patrick_Delaney)\
**Post date:** [May 11, 2013, 11:52am UTC](https://forum.xojo.com/t/webdialog-bug/8309/8 "2013-05-11T11:52:59Z")

</div>

Bit more testing - creating the controls in the open event seems to work ok.

It’s when the controls when the page has already been displayed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:41pm UTC](https://forum.xojo.com/t/webdialog-bug/8309/9 "2020-10-29T16:41:23Z")

</div>


