# Context Menu sub menu

**URL:** <https://community.thinkgeo.com/t/context-menu-sub-menu/5556>\
**Category:** WebForms\
**Created:** [November 15, 2010, 12:38pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556 "2010-11-15T12:38:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 15, 2010, 12:38pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/1 "2010-11-15T12:38:30Z")

</div>

Hi,

i&nbsp;need&nbsp;to&nbsp;implement&nbsp;a&nbsp;sub&nbsp;menu&nbsp;and&nbsp;have&nbsp;usedthe&nbsp;sample&nbsp;here

[wiki.thinkgeo.com/wiki/File\_...enu\_CS.zip](http://wiki.thinkgeo.com/wiki/File_talk:WebEditionSample_ContextMenuWithSubMenu_CS.zip)

The&nbsp;sample&nbsp;works&nbsp;fine&nbsp;for&nbsp;me&nbsp;[VS2008]but&nbsp;for&nbsp;some&nbsp;reason&nbsp;when&nbsp;I&nbsp;add&nbsp;the&nbsp;code&nbsp;to&nbsp;my&nbsp;own&nbsp;project&nbsp;[VS2010]&nbsp;I&nbsp;get&nbsp;an&nbsp;error&nbsp;when&nbsp;I&nbsp;hover&nbsp;over&nbsp;the&nbsp;menu&nbsp;item&nbsp;that&nbsp;contains&nbsp;the&nbsp;the&nbsp;sub&nbsp;menus.

Have&nbsp;spent&nbsp;a&nbsp;good&nbsp;while&nbsp;at&nbsp;it&nbsp;so&nbsp;far&nbsp;and&nbsp;I'm&nbsp;kinda&nbsp;lost&nbsp;as&nbsp;to&nbsp;what&nbsp;I&nbsp;have&nbsp;done&nbsp;wrong

In&nbsp;the&nbsp;page&nbsp;load&nbsp;I&nbsp;have&nbsp;the&nbsp;attached&nbsp;code&nbsp;which&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;the&nbsp;demo

`ContextMenu menuOnMap = new ContextMenu("area", 180);ContextMenuItem redirectItem = new ContextMenuItem("<a href='thinkgeo.com' target='_blank'>ThinkGeo<a>");ContextMenuItem InfomationItem = new ContextMenuItem("Menu item");menuOnMap.MenuItems.Add(redirectItem);ContextMenuItem subItem = new ContextMenuItem("sub menu");redirectItem.MenuItems.Add(subItem);menuOnMap.MenuItems.Add(InfomationItem);Map1.ContextMenu = menuOnMap;`

&nbsp;

,&nbsp;however&nbsp;I&nbsp;get&nbsp;an&nbsp;Object&nbsp;required&nbsp;error&nbsp;when&nbsp;I&nbsp;hover&nbsp;over&nbsp;the&nbsp;item&nbsp;that&nbsp;contains&nbsp;the&nbsp;sub&nbsp;menu.

_subContextMenu.mapUniqueID&nbsp;is&nbsp;undefined_

[See&nbsp;attached&nbsp;document]

I&nbsp;have&nbsp;tested&nbsp;it&nbsp;in&nbsp;IE8&nbsp;and&nbsp;Firefox.

I'm&nbsp;on&nbsp;XP&nbsp;and&nbsp;using&nbsp;VS2010&nbsp;with&nbsp;V&nbsp;4.5.0.0&nbsp;of&nbsp;MapSuite.

_Any&nbsp;ideas,_

Thanks&nbsp;in&nbsp;advance

Liam

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

[Context\_Menu.docx](https://community.thinkgeo.com/uploads/default/original/1X/c9ef3ad66038c6588ab26a21873e153abfc1ad3d.docx) (46.1 KB)

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 15, 2010, 6:42pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/2 "2010-11-15T18:42:50Z")

</div>

Hi,&nbsp;  
&nbsp;&nbsp;  
&nbsp;On&nbsp;further&nbsp;examination&nbsp;in&nbsp;debug&nbsp;the&nbsp;following&nbsp;line&nbsp;fails&nbsp;on&nbsp;mouse&nbsp;oevr&nbsp;of&nbsp;a&nbsp;parent&nbsp;menu&nbsp;item&nbsp;with&nbsp;a&nbsp;sub&nbsp;menu&nbsp;  
&nbsp;&nbsp;  
&nbsp;?&nbsp;document.getElementById(subContextMenu.mapUniqueId)&nbsp;=&nbsp;null&nbsp;although&nbsp;the&nbsp;element&nbsp;does&nbsp;exist&nbsp;on&nbsp;the&nbsp;page!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Liam

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 16, 2010, 2:51am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/3 "2010-11-16T02:51:14Z")

</div>

&nbsp;

Hi,&nbsp;Liam  
&nbsp;  
Thanks&nbsp;for&nbsp;your&nbsp;providing&nbsp;codes.  
&nbsp;  
I&nbsp;have&nbsp;tried&nbsp;to&nbsp;use&nbsp;the&nbsp;same&nbsp;code&nbsp;with&nbsp;yours,&nbsp;but&nbsp;I&nbsp;don’t&nbsp;find&nbsp;any&nbsp;problems&nbsp;about&nbsp;it.&nbsp;Please&nbsp;get&nbsp;the&nbsp;latest&nbsp;Daily&nbsp;Build&nbsp;(4.5.15.0&nbsp;or&nbsp;later)&nbsp;through&nbsp;[helpdesk.thinkgeo.com/helpdesk/login.aspx](http://helpdesk.thinkgeo.com/helpdesk/login.aspx).  
If&nbsp;you&nbsp;still&nbsp;have&nbsp;issues&nbsp;then&nbsp;please&nbsp;provide&nbsp;us&nbsp;the&nbsp;sample&nbsp;project&nbsp;for&nbsp;us&nbsp;to&nbsp;re-product&nbsp;it.  
&nbsp;  
Thanks,  
&nbsp;  
Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 16, 2010, 5:45am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/4 "2010-11-16T05:45:18Z")

</div>

Hi&nbsp;Khalil,

I&nbsp;have&nbsp;tried&nbsp;the&nbsp;latest&nbsp;daily&nbsp;build&nbsp;and&nbsp;the&nbsp;issue&nbsp;still&nbsp;exists.

I&nbsp;have&nbsp;attached&nbsp;a&nbsp;sample&nbsp;application&nbsp;that&nbsp;demos&nbsp;the&nbsp;Object&nbsp;Required&nbsp;message&nbsp;in&nbsp;IE8.

[I&nbsp;removed&nbsp;the&nbsp;4&nbsp;required&nbsp;dlls&nbsp;from&nbsp;the&nbsp;references&nbsp;folder&nbsp;in&nbsp;order&nbsp;to&nbsp;keep&nbsp;the&nbsp;zip&nbsp;file&nbsp;below&nbsp;the&nbsp;upload&nbsp;limit.&nbsp;v4.5.15.0]

Liam

[IE8ConteztErrorSampple\_app.docx](https://community.thinkgeo.com/uploads/default/original/2X/7/74105fb47d6aa567c9f6c161875df7e810eccc95.docx) (85.7 KB)  
[ContextMenuSample2.zip](https://community.thinkgeo.com/uploads/default/original/2X/6/61d3e5e54864612fa027c725427d7bd75bac6340.zip) (283 KB)

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 16, 2010, 8:50pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/5 "2010-11-16T20:50:32Z")

</div>

&nbsp;

Hi,&nbsp;Liam  
&nbsp;  
Thanks&nbsp;for&nbsp;the&nbsp;codes&nbsp;and&nbsp;screenshot&nbsp;you&nbsp;have&nbsp;provided&nbsp;for&nbsp;this&nbsp;problem.  
&nbsp;  
This&nbsp;issue&nbsp;does&nbsp;exist,&nbsp;but&nbsp;we&nbsp;have&nbsp;fixed&nbsp;this&nbsp;issue&nbsp;and&nbsp;it&nbsp;should&nbsp;be&nbsp;available&nbsp;in&nbsp;the&nbsp;latest&nbsp;Daily&nbsp;Build&nbsp;(4.5.17.0&nbsp;or&nbsp;later).&nbsp;Please&nbsp;get&nbsp;it&nbsp;through&nbsp;[helpdesk.thinkgeo.com/helpdesk/login.aspx](http://helpdesk.thinkgeo.com/helpdesk/login.aspx).  
&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/0/0f27519b6a91a3a9b5004e6012d9cf7fab93d672.png)  
&nbsp;  
Thanks,  
&nbsp;  
Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 17, 2010, 4:10am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/6 "2010-11-17T04:10:05Z")

</div>

Hi&nbsp;Khalil,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;that.&nbsp;  
&nbsp;&nbsp;  
&nbsp;4.5.16&nbsp;seems&nbsp;to&nbsp;be&nbsp;the&nbsp;lastest&nbsp;version&nbsp;available&nbsp;in&nbsp;the&nbsp;Daily&nbsp;Dev&nbsp;or&nbsp;Production&nbsp;build.&nbsp;  
&nbsp;[WebEditionEvaluation4.5.16.0DllPackage.zip&nbsp;]&nbsp;  
&nbsp;4.5.17&nbsp;is&nbsp;not&nbsp;available.&nbsp;  
&nbsp;I&nbsp;will&nbsp;keep&nbsp;an&nbsp;eye&nbsp;on&nbsp;it&nbsp;and&nbsp;download&nbsp;4.5.17&nbsp;when&nbsp;available&nbsp;  
&nbsp;&nbsp;  
&nbsp;Liam&nbsp;

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 17, 2010, 7:39pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/7 "2010-11-17T19:39:46Z")

</div>

Liam,&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;auto&nbsp;build&nbsp;should&nbsp;be&nbsp;available&nbsp;for&nbsp;you&nbsp;to&nbsp;download.&nbsp;Let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;still&nbsp;have&nbsp;issues&nbsp;then.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 18, 2010, 5:10am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/8 "2010-11-18T05:10:08Z")

</div>

Hi&nbsp;Khalil,&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;Production&nbsp;build&nbsp;of&nbsp;4.5.17&nbsp;still&nbsp;had&nbsp;the&nbsp;issue&nbsp;but&nbsp;the&nbsp;Development&nbsp;build&nbsp;worked&nbsp;fine.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Functionality&nbsp;is&nbsp;as&nbsp;expected.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;quick&nbsp;availability&nbsp;of&nbsp;bug&nbsp;fixes&nbsp;via&nbsp;Daily&nbsp;builds&nbsp;is&nbsp;a&nbsp;really&nbsp;usefull&nbsp;service.&nbsp;  
&nbsp;&nbsp;  
&nbsp;When&nbsp;do&nbsp;bug&nbsp;fixes&nbsp;like&nbsp;this&nbsp;move&nbsp;across&nbsp;to&nbsp;the&nbsp;Development&nbsp;build&nbsp;usually.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Rgds,&nbsp;  
&nbsp;Liam

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 18, 2010, 9:14pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/9 "2010-11-18T21:14:05Z")

</div>

&nbsp;

Hi,&nbsp;Liam  
Sorry&nbsp;for&nbsp;that.&nbsp;I&nbsp;forgot&nbsp;to&nbsp;remind&nbsp;you&nbsp;what&nbsp;I&nbsp;mean&nbsp;is&nbsp;the&nbsp;development&nbsp;daily&nbsp;builds.  
In&nbsp;a&nbsp;couple&nbsp;of&nbsp;weeks&nbsp;ago,&nbsp;the&nbsp;bug&nbsp;fixes&nbsp;also&nbsp;had&nbsp;been&nbsp;included&nbsp;in&nbsp;the&nbsp;development&nbsp;daily&nbsp;builds.&nbsp;Meanwhile,&nbsp;these&nbsp;builds&nbsp;also&nbsp;contains&nbsp;new&nbsp;features&nbsp;and&nbsp;functionality.  
Thanks,  
Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 19, 2010, 1:13am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/10 "2010-11-19T01:13:12Z")

</div>

Hi&nbsp;Khalil,

No&nbsp;worries&nbsp;o&nbsp;the&nbsp;reminder.

I'm&nbsp;unsure&nbsp;what&nbsp;you&nbsp;mean&nbsp;in&nbsp;the&nbsp;above&nbsp;explaination.&nbsp;How&nbsp;often&nbsp;are&nbsp;the&nbsp;daily&nbsp;dev&nbsp;and&nbsp;production&nbsp;builds&nbsp;synched&nbsp;with&nbsp;each&nbsp;other.&nbsp;I'm&nbsp;aware&nbsp;that&nbsp;there&nbsp;was&nbsp;a&nbsp;recent&nbsp;general&nbsp;release&nbsp;[4.5].

i.e.&nbsp;when&nbsp;will&nbsp;the&nbsp;recent&nbsp;change&nbsp;for&nbsp;the&nbsp;sub&nbsp;menu&nbsp;be&nbsp;migrated&nbsp;across&nbsp;to&nbsp;the&nbsp;production&nbsp;build.

Rgds,

Liam

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 21, 2010, 9:16pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/11 "2010-11-21T21:16:14Z")

</div>

&nbsp;

Hi,&nbsp;Liam  
In&nbsp;fact,&nbsp;we&nbsp;don’t&nbsp;synchronize&nbsp;the&nbsp;daily&nbsp;development&nbsp;and&nbsp;production&nbsp;builds&nbsp;before&nbsp;the&nbsp;version&nbsp;of&nbsp;4.5.17.0,&nbsp;but&nbsp;we&nbsp;only&nbsp;include&nbsp;the&nbsp;bug&nbsp;fixes&nbsp;and&nbsp;new&nbsp;features&nbsp;or&nbsp;functionality&nbsp;in&nbsp;the&nbsp;Daily&nbsp;Development&nbsp;builds.  
From&nbsp;the&nbsp;version&nbsp;of&nbsp;4.5.17.0&nbsp;on,&nbsp;and&nbsp;we&nbsp;will&nbsp;include&nbsp;bug&nbsp;fixes&nbsp;in&nbsp;the&nbsp;two&nbsp;builds,&nbsp;and&nbsp;the&nbsp;development&nbsp;builds&nbsp;also&nbsp;include&nbsp;new&nbsp;features.  
The&nbsp;recent&nbsp;change&nbsp;for&nbsp;the&nbsp;sub&nbsp;menu&nbsp;problem&nbsp;will&nbsp;be&nbsp;migrated&nbsp;across&nbsp;to&nbsp;production&nbsp;build&nbsp;in&nbsp;the&nbsp;next&nbsp;release.  
Also&nbsp;you&nbsp;can&nbsp;get&nbsp;full&nbsp;detailed&nbsp;information&nbsp;from&nbsp;our&nbsp;wiki&nbsp;stuff.  
[wiki.thinkgeo.com/wiki/Map\_S...ilds\_Guide](http://wiki.thinkgeo.com/wiki/Map_Suite_Daily_Builds_Guide)  
Thanks,  
Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 23, 2010, 11:08am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/12 "2010-11-23T11:08:32Z")

</div>

Hi&nbsp;Khalil,

Thanks&nbsp;for&nbsp;the&nbsp;info.

I&nbsp;have&nbsp;another&nbsp;context&nbsp;menu&nbsp;issue&nbsp;in&nbsp;both&nbsp;Firefox&nbsp;and&nbsp;IE8.

At&nbsp;high&nbsp;zoom&nbsp;levels&nbsp;the&nbsp;context&nbsp;menu&nbsp;disappears&nbsp;immediately&nbsp;after&nbsp;a&nbsp;brief&nbsp;appearance.&nbsp;When&nbsp;you&nbsp;zoom&nbsp;in&nbsp;further&nbsp;it&nbsp;works&nbsp;fine.

Please&nbsp;see&nbsp;the&nbsp;attached&nbsp;sample&nbsp;-&nbsp;if&nbsp;you&nbsp;zoom&nbsp;out&nbsp;to&nbsp;the&nbsp;furtest&nbsp;extent&nbsp;the&nbsp;context&nbsp;menu&nbsp;disappears&nbsp;almost&nbsp;immediatly&nbsp;and&nbsp;as&nbsp;you&nbsp;zoom&nbsp;in&nbsp;further&nbsp;it&nbsp;still&nbsp;exibits&nbsp;the&nbsp;same&nbsp;behavour&nbsp;untill&nbsp;you&nbsp;are&nbsp;zoomed&nbsp;into&nbsp;about&nbsp;half&nbsp;way&nbsp;on&nbsp;the&nbsp;zoom&nbsp;scale.

This&nbsp;issue&nbsp;does&nbsp;not&nbsp;seem&nbsp;to&nbsp;occur&nbsp;when&nbsp;using&nbsp;the&nbsp;WorldMap&nbsp;Kit&nbsp;but&nbsp;does&nbsp;occur&nbsp;when&nbsp;using&nbsp;the&nbsp;Google&nbsp;maps&nbsp;layer.

With&nbsp;the&nbsp;Google&nbsp;Maps&nbsp;layer&nbsp;the&nbsp;menu&nbsp;problem&nbsp;only&nbsp;actually&nbsp;occurs&nbsp;when&nbsp;sample&nbsp;markers&nbsp;are&nbsp;added.&nbsp;

I'm&nbsp;using&nbsp;4.5.17.0&nbsp;from&nbsp;the&nbsp;development&nbsp;daily&nbsp;build.

Can&nbsp;you&nbsp;have&nbsp;a&nbsp;look&nbsp;at&nbsp;this.

I&nbsp;have&nbsp;recorded&nbsp;the&nbsp;behavour&nbsp;and&nbsp;have&nbsp;emailed&nbsp;the&nbsp;video&nbsp;to&nbsp;support

There&nbsp;is&nbsp;also&nbsp;an&nbsp;intermittent&nbsp;error&nbsp;captured&nbsp;in&nbsp;the&nbsp;video&nbsp;also&nbsp;which&nbsp;appears&nbsp;for&nbsp;time&nbsp;to&nbsp;time.&nbsp;Can&nbsp;you&nbsp;check&nbsp;if&nbsp;it&nbsp;can&nbsp;be&nbsp;reproduced&nbsp;with&nbsp;the&nbsp;attached&nbsp;project.

Liam.

&nbsp;

&nbsp;

&nbsp;

[ContextMenuWithSubMenu\_on\_google\_maps\_V2.zip](https://community.thinkgeo.com/uploads/default/original/2X/c/cd54be560a86e8774f235ea6cfd1141d7630dc85.zip) (261 KB)

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 23, 2010, 11:20am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/13 "2010-11-23T11:20:26Z")

</div>

Hi&nbsp;Khaili,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;also&nbsp;find&nbsp;that&nbsp;the&nbsp;context&nbsp;menu&nbsp;also&nbsp;appears&nbsp;1/2&nbsp;screen&nbsp;away&nbsp;from&nbsp;where&nbsp;the&nbsp;right&nbsp;click&nbsp;occurred.&nbsp;-&nbsp;What&nbsp;would&nbsp;be&nbsp;the&nbsp;cuse&nbsp;of&nbsp;this&nbsp;issue?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Liam

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 23, 2010, 11:20am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/14 "2010-11-23T11:20:30Z")

</div>

Hi&nbsp;Khaili,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;also&nbsp;find&nbsp;that&nbsp;the&nbsp;context&nbsp;menu&nbsp;also&nbsp;appears&nbsp;1/2&nbsp;screen&nbsp;away&nbsp;from&nbsp;where&nbsp;the&nbsp;right&nbsp;click&nbsp;occurred.&nbsp;-&nbsp;What&nbsp;would&nbsp;be&nbsp;the&nbsp;cuse&nbsp;of&nbsp;this&nbsp;issue?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Liam

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 24, 2010, 3:46am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/15 "2010-11-24T03:46:27Z")

</div>

&nbsp;

Hi,&nbsp;Liam  
Thanks&nbsp;for&nbsp;your&nbsp;video&nbsp;and&nbsp;sample&nbsp;codes.&nbsp;We&nbsp;can&nbsp;reproduce&nbsp;the&nbsp;problem&nbsp;easily.  
Here&nbsp;is&nbsp;one&nbsp;quick&nbsp;fix&nbsp;for&nbsp;that.&nbsp;Setting&nbsp;the&nbsp;AutoPan&nbsp;property&nbsp;as&nbsp;false.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;liftOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.Popup.AutoPan&nbsp;=&nbsp;false;  
If&nbsp;you&nbsp;set&nbsp;it&nbsp;as&nbsp;true,&nbsp;and&nbsp;we&nbsp;will&nbsp;pan&nbsp;the&nbsp;map&nbsp;in&nbsp;order&nbsp;to&nbsp;include&nbsp;the&nbsp;all&nbsp;popups.&nbsp;But&nbsp;there&nbsp;is&nbsp;one&nbsp;bug&nbsp;for&nbsp;that,&nbsp;and&nbsp;it&nbsp;will&nbsp;cause&nbsp;the&nbsp;recursive&nbsp;call&nbsp;of&nbsp;Pan&nbsp;Method&nbsp;that&nbsp;leads&nbsp;to&nbsp;the&nbsp;issues.  
As&nbsp;for&nbsp;your&nbsp;another&nbsp;issues&nbsp;about&nbsp;“appears&nbsp;1/2&nbsp;screen&nbsp;away&nbsp;from&nbsp;where&nbsp;the&nbsp;right&nbsp;click&nbsp;occurred”,&nbsp;and&nbsp;I&nbsp;don’t&nbsp;understand&nbsp;what&nbsp;your&nbsp;meaning.&nbsp;Can&nbsp;you&nbsp;clarify&nbsp;it&nbsp;for&nbsp;use&nbsp;more&nbsp;clearly?  
Thanks,  
Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [November 24, 2010, 4:23am UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/16 "2010-11-24T04:23:40Z")

</div>

Hi&nbsp;Khaili,

Thanks&nbsp;for&nbsp;that,&nbsp;the&nbsp;issue&nbsp;is&nbsp;fixed&nbsp;on&nbsp;the&nbsp;sample&nbsp;project&nbsp;and&nbsp;on&nbsp;our&nbsp;main&nbsp;project.

Do&nbsp;you&nbsp;have&nbsp;a&nbsp;timeline&nbsp;for&nbsp;this&nbsp;bug&nbsp;fix.

On&nbsp;our&nbsp;main&nbsp;project&nbsp;the&nbsp;issue&nbsp;that&nbsp;I&nbsp;discussed&nbsp;has&nbsp;got&nbsp;worse,&nbsp;i.e.&nbsp;with&nbsp;the&nbsp;context&nbsp;menu&nbsp;appearing&nbsp;at&nbsp;a&nbsp;different&nbsp;location&nbsp;than&nbsp;where&nbsp;the&nbsp;right&nbsp;click&nbsp;occurred.

I&nbsp;have&nbsp;attached&nbsp;a&nbsp;image&nbsp;to&nbsp;clarify.

I&nbsp;have&nbsp;right&nbsp;clicked&nbsp;on&nbsp;the&nbsp;bottom&nbsp;of&nbsp;the&nbsp;map&nbsp;[around&nbsp;Spain]&nbsp;and&nbsp;the&nbsp;context&nbsp;emu&nbsp;has&nbsp;appeared&nbsp;off&nbsp;the&nbsp;map&nbsp;completely.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/f/fc1940b10018f92d196960766f712d392009eced.jpg)

This&nbsp;issue&nbsp;is&nbsp;in&nbsp;IE8&nbsp;and&nbsp;Firefox&nbsp;but&nbsp;I&nbsp;cannot&nbsp;reproduce&nbsp;in&nbsp;the&nbsp;sample&nbsp;which&nbsp;is&nbsp;frustrating.

The&nbsp;code&nbsp;base&nbsp;in&nbsp;the&nbsp;sample&nbsp;is&nbsp;similiar&nbsp;to&nbsp;our&nbsp;main&nbsp;project&nbsp;code&nbsp;base&nbsp;although&nbsp;the&nbsp;main&nbsp;project&nbsp;has&nbsp;the&nbsp;map&nbsp;contained&nbsp;in&nbsp;a&nbsp;user&nbsp;control&nbsp;if&nbsp;that&nbsp;makes&nbsp;a&nbsp;difference

Thanks&nbsp;and&nbsp;Rgds,

&nbsp;

&nbsp;

Liam

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [November 24, 2010, 8:25pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/17 "2010-11-24T20:25:33Z")

</div>

&nbsp;

Hi,&nbsp;Liam  
Ok,&nbsp;I&nbsp;got&nbsp;your&nbsp;problem.&nbsp;I&nbsp;can&nbsp;reproduce&nbsp;it&nbsp;in&nbsp;your&nbsp;previous&nbsp;attached&nbsp;sample&nbsp;of&nbsp;“[ContextMenuSample2.zip](http://gis.thinkgeo.com/Portals/1/activeforums_Attach/ContextMenuSample2.zip)”.  
The&nbsp;issue&nbsp;is&nbsp;caused&nbsp;by&nbsp;the&nbsp;position&nbsp;setting&nbsp;of&nbsp;your&nbsp;web&nbsp;page&nbsp;not&nbsp;related&nbsp;with&nbsp;other&nbsp;things.&nbsp;Here&nbsp;are&nbsp;two&nbsp;solutions&nbsp;for&nbsp;you.  
1.&nbsp;One&nbsp;is&nbsp;to&nbsp;add&nbsp;the&nbsp;missing&nbsp;closing&nbsp;div&nbsp;tag&nbsp;which&nbsp;has&nbsp;the&nbsp;class&nbsp;of&nbsp;“header”,&nbsp;please&nbsp;see&nbsp;the&nbsp;screenshot&nbsp;below.  
2.&nbsp;Another&nbsp;one&nbsp;is&nbsp;to&nbsp;remove&nbsp;the&nbsp;position&nbsp;CSS&nbsp;style&nbsp;for&nbsp;header&nbsp;class&nbsp;in&nbsp;the&nbsp;Site.css&nbsp;file,&nbsp;which&nbsp;doesn’t&nbsp;make&nbsp;sense&nbsp;for&nbsp;it.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/1/177c6d1451a56967d35c7b9d72c25ded18b9806a.png)  
As&nbsp;for&nbsp;the&nbsp;previous&nbsp;issue,&nbsp;that’s&nbsp;not&nbsp;a&nbsp;bug,&nbsp;at&nbsp;least&nbsp;we&nbsp;don’t&nbsp;consider&nbsp;it&nbsp;as&nbsp;bug.&nbsp;But&nbsp;we&nbsp;are&nbsp;considering&nbsp;giving&nbsp;users&nbsp;a&nbsp;workaround&nbsp;for&nbsp;it.&nbsp;Any&nbsp;progress&nbsp;on&nbsp;it&nbsp;we&nbsp;will&nbsp;let&nbsp;you&nbsp;know&nbsp;first.  
Hope&nbsp;it&nbsp;could&nbsp;help&nbsp;you.&nbsp;If&nbsp;you&nbsp;have&nbsp;additional&nbsp;questions&nbsp;please&nbsp;let&nbsp;us&nbsp;know.  
Thanks,  
Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [December 2, 2010, 3:36pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/18 "2010-12-02T15:36:42Z")

</div>

Hi&nbsp;Khalil,

Thanks&nbsp;for&nbsp;the&nbsp;response,&nbsp;I&nbsp;should&nbsp;get&nbsp;to&nbsp;this&nbsp;tomorrow&nbsp;and&nbsp;will&nbsp;let&nbsp;you&nbsp;know

Rgds,

Liam

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [December 2, 2010, 8:35pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/19 "2010-12-02T20:35:05Z")

</div>

Liam,&nbsp;Looking&nbsp;forward&nbsp;to&nbsp;your&nbsp;response&nbsp;on&nbsp;this&nbsp;problem.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;it&nbsp;still&nbsp;exists&nbsp;please&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Khalil

---

<div class="post-metadata">

**Author:** ![Liam](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/b9e5f3/32.png) [@Liam](https://community.thinkgeo.com/u/Liam)\
**Post date:** [January 21, 2011, 12:43pm UTC](https://community.thinkgeo.com/t/context-menu-sub-menu/5556/20 "2011-01-21T12:43:40Z")

</div>

Hi&nbsp;Khalil,

I&nbsp;have&nbsp;returned&nbsp;to&nbsp;this&nbsp;issue&nbsp;[eventually!]&nbsp;and&nbsp;the&nbsp;issue&nbsp;is&nbsp;still&nbsp;there&nbsp;so&nbsp;I'm&nbsp;going&nbsp;to&nbsp;try&nbsp;and&nbsp;force&nbsp;the&nbsp;Vertical&nbsp;postion&nbsp;of&nbsp;the&nbsp;context&nbsp;menu.&nbsp;The&nbsp;horizontal&nbsp;position&nbsp;does&nbsp;not&nbsp;suffer&nbsp;from&nbsp;the&nbsp;issue&nbsp;above.

&nbsp;

I'm&nbsp;already&nbsp;saving&nbsp;the&nbsp;right&nbsp;click&nbsp;location&nbsp;for&nbsp;another&nbsp;purpose&nbsp;and&nbsp;just&nbsp;need&nbsp;to&nbsp;extend&nbsp;this&nbsp;to&nbsp;ensure&nbsp;that&nbsp;the&nbsp;context&nbsp;menu&nbsp;appears&nbsp;in&nbsp;the&nbsp;correct&nbsp;location

&nbsp;

\<code="script"\>  
function&nbsp;OnMapCreated(Map1)&nbsp;{  
&nbsp;&nbsp;&nbsp;&nbsp;Map1.events.register('mousedown',&nbsp;Map1,&nbsp;function&nbsp;(evt)&nbsp;{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(evt&nbsp;&&&nbsp;evt.button&nbsp;==&nbsp;2)&nbsp;{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rightClickCurrentLocation.X&nbsp;=&nbsp;evt.xy.x;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rightClickCurrentLocation.Y&nbsp;=&nbsp;evt.xy.y;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
``

` `

`

 

 

 

Thanks, 

Liam
`

[Next page](https://community.thinkgeo.com/t/context-menu-sub-menu/5556.md?page=2)
