Symptoms
- Clicking the part’s edit menu does nothing.
- You are using Bootstrap’s CSS files.
- You receive the following error in the console window.
Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Solution
This happens because setLocation function checks to make sure the parameters are integers. Bootstrap’s CSS sometimes causes the menu’s position to resolve as a floating point number. By forcing the menu’s position to be an integer, the menu will appear.
- Make a backup of this file.
NetCommunity\Client\Scripts\PaneEdit6.js
- Open this file in a text editor.
- find this function
function ShowPaneMenu(paneObj)
- Modify this line (Line 308 at the time of this post)
Sys.UI.DomElement.setLocation(menu, pos.left + 5, pos.top + 5);
Replace with this code.
Sys.UI.DomElement.setLocation(menu, parseInt(pos.left + 5), parseInt(pos.top + 5));
- Save the file.