Context Menu Position Help

My client wants to use Theme 12 instead of Theme 13 for the document library packaged application. I am having issues with the context menu. <b>I have the menu working</b>. I dont need links to threads about getting the menu to work. My issue is the position of the context menu is wrong and I have been fighting the css for two days trying to get it to work, I even took a crack at it with Firebug and couldnt get it sorted, but css's arent really my thing either. It appears on the bottom of screen on the left side of the screen. It seems to appear below all other regions, but I havent tested to confirm this.
Using APEX 4.1, IE, Firefox, and Chrome.
Richard

I know this isnt proper by any means but this is what the code ended up looking like
<script type="text/javascript">
function doc_menu1(pThis,pId){
     var lDiv = $x(pThis);
         var test1 = $('#'+pThis.id).position().left + parseInt(lDiv.offsetWidth)
         var test2 = $('#'+pThis.id).position().top
     if(gRow!=lDiv){$x_Hide(gMenu)}
     gRowClick = $x_UpTill(lDiv,'TR');
     if(!gMenu){
           gMenu = $x_AddTag(document.body,'div','');
           gMenu.id = 'MENU_HOLDER';
            gMenu.style.posTop = parseInt(findPosY1(lDiv));
            gMenu.style.posLeft = parseInt(findPosX1(lDiv)) + parseInt(lDiv.offsetWidth);
     $x_Show(gMenu);
     var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=DOC_MENU',0);
     get.add('DOC_ID',$x(lDiv).id);
     get.GetAsync(doc_menu_click_return);
     return;
function findPosX1(obj) {
     var curleft = curtop = 0;
         if (obj.offsetParent) {
              do {
          curleft += obj.offsetLeft;
          curtop += obj.offsetTop;
              } while (obj = obj.offsetParent);
        return [curleft];
function findPosY1(obj) {
     var curleft = curtop = 0;
         if (obj.offsetParent) {
              do {
          curleft += obj.offsetLeft;
          curtop += obj.offsetTop;
              } while (obj = obj.offsetParent);
        return [curtop];
</script>I put it in the HTML Header of the pages that had the js calls. This worked without any problems.
Richard

Similar Messages

  • Portal context menu incorrect position

    Hi all,
    Environment: BI 7.0, Portal 7.0
    Context menu positions incorrectly in portal when I click right mouse button on elements of tables. Sometimes, on the top of page or far away from the table, rather than beside the elements of tables.
    Could u tell me how to adjust context menu display position in portal management?
    Thank you!!!

    Hi,
    The problem which you are facing might be because of the browser problem.Remove all your cache and temp files in browser and try using portal.
    Regards,
    Vinoth.M

  • Keyboard shortcut for context menu

    Hello all. I recently got a MacBook and it's the first Mac I've ever had. I'm a keyboard shortcut guy when I can be and one thing that's stumped me is using the keyboard to open up the context menu.
    Does anybody know a keyboard shortcut for opening the context menu (ie Ctrl + mouse Click)?
    If there isn't one, I would be happy to add a custom keyboard shortcut for it in the System Preferences. I've tried to do so but I'm doing something wrong because it isn't working. Here's what I've tried specifically:
    1. For "All Applications" add Ctrl+Space for the Menu Title "Show Context Menu"
    2. For "All Applications" add Ctrl+Space for the Menu Title "Open Context Menu"
    Does anybody know the exact Menu Title for the context menu?
    Help is much appreciated!

    The Keyboard Shortcuts are for menu items, not macro creation. What you want to do requires a third-party utility for programming keyboard macros such as iKey, QuickSilver, etc. You'll find these at VersionTracker or MacUpdate.

  • Context menu of adf tree not working properly in firefox

    hi all,
    I am creating a context menu using the context facet in <adf:tree>. Everything is working fine in both chrome and ie but the issue is with firefox.It's opening up the browser window and rarely showing up the context menu
    Any help would be appreciated.
    Here is the code
    <af:tree value="#{bindings.FormSectionsView1.treeModel}" var="node"
    selectionListener="#{bindings.FormSectionsView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
    <af:menu text="menu 1" id="m2">
    <af:commandMenuItem text="commandMenuItem 1" id="cmi1"/>
    <af:commandMenuItem text="commandMenuItem 2" id="cmi2"/>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    Thanks,
    Raj

    Raj,
    Welcome to OTN. Always mention your JDev version (read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56 )
    Try running the tree demo in your browser and see if it works fine (Right click on any node to bring up the context menu).
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx
    -Arun

  • How to change the default position of context menu item? (C#)

    Hi,
    I have included a calendar context menu item with my Outlook Addin. But by default, its positioned at the last as shown in the picture below:
    I need a way to make it as the fourth item instead of last one. Also, I want set an icon for the same. How can I do that?
    Appreciate if you can give some sample examples.
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    The
    Customizing Context Menus in Office 2010 article in MSDN describes the basics.
    You can specify the IdMso value of the built-in control after/before you need to insert your own:
    <button id="MyBtn" label="MyButton" insertBeforeMso="OpenSelectedItems" />
    See
    Office 2013 Help Files: Office Fluent User Interface Control Identifiers 
    for IdMso values.

  • My right click is not working. the context menu does not come up and i can no longer drag files/folders. I have checked the mouse and track pad in system preferences and the correct boxes are all checked (with a support member). Please can you help

    My right click is not working and producing the context menu or ability to drag files and folders. I just spoke with a phone support person and we checked that all the mouse/trackpad options for right click were correct and checked.
    Please can you help with this.
    It has only just happened in the last few days.
    Many thanks

    You might want to update your profile so that we can see what model iMac you have and what version of OSX you're running.
    For this question, it might help to know if you're dealing with a trackpad, Magic Mouse, or something else?
    (Until your issue's resolved, you can Control-Left Click to get the right click functionality).

  • Context Menu Items Gone After Running "cleaner" program. Help...

    So with the whole Flashback/Flashfake thing I paniced (stupid on my part) ran a virus program called VirusBarrier Express and ran CCleaner (again, stupid me). Hoping I would clear off unused or harmful files I apparently in the process messed up my context menu. Items that were previously in the context menu are now gone. I did as much reading about possible fixes as I could and this is where everything stands.
    Not every item in the image  below was at the botton of the context menu, but iPack certainly was as well as various other menu items that have since dissapeared.
    While searching the internet I came across a suggestion leading me to "library/Contextual Menu Items" and when I followed that directory for both my user and system I couldn't find a Contextual Menu Items folder. There wasn't any. I've had this "missing file/folder" problem before with preference files; just a side note.
    I created the folder manually and restarted with no change at all.
    Obviously I accidentally deleted something that shouldn't have been deleted. Is there any way to get back those missing items?
    Any help is highly appriciated.

    Thank you everybody for your input and advice! I've deleted the virus software, but if I use any in the future I'll be sure to have only one installed. I initally downloaded multiple ones, but only ran one (VirusBarrier).
    I restored from a Time Machine backup with the help of Apple tech support to before I ran CCleaner (never running something like that again) and the problem fixed itself.
    I will have to be far more wary of running programs in the future. Thank you again for everybody's input and advice!
    (below is what it looked like, or kind of like, before.)

  • Context Menu Help

    Is there any way to reduce the number of items on the "open with" context menu? I have a lot of programs which can open files but I use only certain ones and would like to eliminate the others which show up. For instance, I have about 20 different digital editors and would like only certain to show.
    Can anyone tell me how to remove those I don't want listed? I've tried rebuilding the launch services database but NONE of them went away! I don't really want to uninstall the programs - I just want more control over what shows in the context menu! I tried to find software to help but I may not be phrasing my request correctly because I get nothing on my searches.
    Thanks so much to anyone who can give me a suggestion.
    Intel iMac   Mac OS X (10.4.10)  

    The launchservices database (and from it the Open With options) is built up based on the compatible file types list in each applications Info.plist file.
    Rebuilding it just tells it to go rescan all those Info.plist's to create a fresh list. To remove items listed as choices, you need to either 1) delete the application or 2) edit the Info.plist that is part of the application package to not include the file types that you don't want it to show up for.
    #1 is obviously easier
    #2 will probably work but may cause a problem when you really do want to use that application to open a particular file.

  • Pretty Please Help me - Context Menu

    PS... this is not only a AS3 question, but also AS2 would work just fine...
    This is going to be a hard one to communicate, so I will have example files attached...
    How can I right click on a MC and have a custom menu, WHEN another movieclip is on a higher layer and overlapping that original MC (and this second movieclip does Not have a context menu)
    Thank you so very much for your time and help on this issue,
    two files are attached, first is the most basic way I can show this issue.
    The second is a better example of Why I NEED to figure this out.
    http://rapidshare.com/files/380919381/contextexample.fla.html
    http://rapidshare.com/files/380919537/contextexample2.fla.html
    Thanks so very much for your time on this issue... in the mean time I will try and help others while I wait for an answer...
    -GK

    bump... looked all over the internet and back, been to a dozen forums...
    I just cant belive this is impossible....
    pretty please help!
    -GK

  • Issue with context menu for online help?

    Try this
    1. Start JDeveloper; Choose Help | Table of Contents and make it visible in Navigator
    2. Close JDeveloper and start it again
    3. Try right clicking on a help node in the Help tab in Navigator. the context menu does not appear until you choose Help | Table of Contents again.
    Is this expected behavior?

    Can you specify what release you are using when you run into this problem? This is a bug, not expected behavior.

  • Context Menu in Bex Reports - position problem

    Hello Experts,
    In CRM 2007 we have a BSP application with a BEx frame  that displays BW reports.
    When we want to jump to a CRM activity from a BW report - we right click the report and use the "go to --> activity" feature of the context menu.
    The problem is that the context menu is always being displayed in the same place.
    So if a user right clicks a report that is located at the bottom of the web page - he has to scroll all the way up to see the context menu.
    The context menu is suppose to appear at the location of the pointer when performing right click - but it doesn't.
    I hope i made the problem clear
    has anyone encountered this before ?
    Any help is appreciated...
    Adi J.
    Edited by: Adi Jabkowsky on Aug 3, 2009 9:23 AM

    Hello Experts,
    In CRM 2007 we have a BSP application with a BEx frame  that displays BW reports.
    When we want to jump to a CRM activity from a BW report - we right click the report and use the "go to --> activity" feature of the context menu.
    The problem is that the context menu is always being displayed in the same place.
    So if a user right clicks a report that is located at the bottom of the web page - he has to scroll all the way up to see the context menu.
    The context menu is suppose to appear at the location of the pointer when performing right click - but it doesn't.
    I hope i made the problem clear
    has anyone encountered this before ?
    Any help is appreciated...
    Adi J.
    Edited by: Adi Jabkowsky on Aug 3, 2009 9:23 AM

  • When I move mouse on Firefox-History (it must show context menu) he just begins to think, and after ~20 seconds he looks like I haven't pressed any buttons! I tried to turn off all addons but it doesn't help. Also he "thinks" everytime when gets download

    when I move mouse on Firefox-History (it must show context menu) he just begins to think, and after ~20 seconds he looks like I haven't pressed any buttons! I tried to turn off all addons but it doesn't help. Also he "thinks" everytime when he gets new downloading and sometimes on pushing Bookmarks

    Try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.

  • Add a menu item in context menu at Sales Quotation

    How can I add a menu item in context menu at WH column in sales quotation screen? To access to the context menu, locate an active quotation and right click at an active WH column and a context menu will be shown.

    Hi Cherine,
    You can use the RightClickEvent to add your context menu depending on the position of the right click.
    You have a sample explaining how to use the RightClickEvent in the SDK UI Samples called 22.RightClick.
    Hope it helps
    Trinidad.

  • Right Mouse Button Context Menu

    Hi There,
    I'm currently involved in developing an application with a pretentious
    user interface. As acquainted from real event driven dev. platforms
    I wonder if LabVIEW is also able to make the application display
    a context menu when users press mouse buttons. I'd like to use
    the event structure to obtain if any button is pressed but I've no idea
    how to design and dispay a context menu near the mouse pointer position.
    Is anybody already expearienced in handling context menus?
    THX for your help.

    Hi,
    I've send you a toolkit for doing this.
    Regards,
    Wiebe.
    "Sebastian Dau" wrote in message
    news:3e5f3785$0$24915$[email protected]..
    > Hi There,
    >
    > I'm currently involved in developing an application with a pretentious
    > user interface. As acquainted from real event driven dev. platforms
    > I wonder if LabVIEW is also able to make the application display
    > a context menu when users press mouse buttons. I'd like to use
    > the event structure to obtain if any button is pressed but I've no idea
    > how to design and dispay a context menu near the mouse pointer position.
    >
    > Is anybody already expearienced in handling context menus?
    > THX for your help.
    >
    >

  • Playlists missing but still in context menu

    Macbook Pro 13" 2013 running Mavericks and latest versions of both Mavericks and iTunes.
    This is a bit of a weird issue. At some point in the last few weeks iTunes decided to update itself from 7.0 despite the fact that I said NO every time the opportunity popped up. Then lo and behold, I open it one day and it's a newer version - fricking gremlins.
    Anyway, after this update my library and playlists had disappeared. I figured I would just open a previous library, but for some reason the newest previous library was several months old and didn't have some playlists.
    While it's not a major issue to remake those missing playlists, what's irritating me is that they're in the context menu when I right click. I can even add music to them. But I can't see the playlist. And when I add a song to one of these missing playlists, the "Show in Playlist" menu item doesn't list these missing playlists. The major problem is an overlap in names - an old playlist and a new replacement playlist with the same name and I'm accidentally adding to the old, not new.
    Anyone have ANY idea what the heck is going on here?
    As an addition, I have the old playlists on my phone (iPhone 4) still. I haven't synced the phone since this problem came up because it wants to erase everything on my phone.
    Any help would be greatly appreciated, thanks!
    brad

    You aren't the only one. I did NOT upgrade to the latest Itunes version recently but upon entering Itunes today my playlists were all gone (and I spend a lot of time organizing playlists). Found a previous .itl (Itunes library file) and was able to save a lot of playlists but the .itl file was 6 months old so all updates made to playlists since then are gone. I may have lost more and am still determining loss but I really hate it when work is lost - I've been an Itunes user since it first came out and this is a regular experience.
    Suggested update for Apple would be to create more historical .itl files (could be daily with user choices as to how many and naming conventions). .itl files can be big so there would have to be file reuse or some means to not overwhelm the user's computer with unused files.

Maybe you are looking for

  • Creating a platform user with AD alias fails in 4.1 (coming from 3.1)

    Hi, I used to be able to create a user using the following: EnterpriseService boEnterpriseService = s.GetService("", "InfoStore");                 var boInfoStore = new InfoStore(boEnterpriseService);                 var newBoUserPlugin = boInfoStore

  • USB port not being recognised

    Hello, When I plug in my mouse, the light leds of the mouse light up, however my mac does not recognise it (it doesnt work) The same goes with a USB flashstick, once i plug it in either of the 2 ports, the USB flashes, however my mac does not regonis

  • E1EDP35 producing more than 1 segment mapping

    Dear All, i have a mapping problem with field /ns0:MT_PostOrder/HEADER/*_REF_DOCNUM_**  in the following segment  E1EDP35. The field muss beproducing more then 1 when have for example 2 Item, the field REF_DOCNUM_** muss be produced two time in the d

  • Help with booleans and Buttons

    Hi, while ( repeat ) {     tempValue = compMove.getRandomNumber();     if ( nought.getUsedSquare(tempValue) ) {         repeat = true;     else if ( crosses.getUsedSquare(tempValue) ) {         repeat = true;     else {         playButton[tempValue].

  • Is Mail Still Slow

    Hi, I have just switched over to Mac from PC and have suffered a horrendous speed reduction when downloading or sending mail when using the Mail application that comes with Leopard. I am downloading at between 0 and 5 kb/s. It is not related to attac