Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fusion 360 Palette - Mimimal Select element doesn't work on Mac

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
512 Views, 4 Replies

Fusion 360 Palette - Mimimal Select element doesn't work on Mac

@goyals @kris_berg 

 

I am developing a Fusion 360 C++ Add-in . It is based on this example:https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-F0068478-49F0-4E5E-9BAD-3116D8FCBCAF

 

My add-in opens up a Palette that displays a Web-page. The problem I am having is 'select'  html option doesn't work in Fusion 360 (Mac) version. On Windows it works fine.

 

To create a minimal code that reproduces the problem I created a html page with just the "select" html element as seen below

 

 

<!DOCTYPE html>
<html>
<body>

<h1>The select element</h1>

<p>The select element is used to create a drop-down list:</p>

<label for="cars">Choose a car:</label>

<select id="cars">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>

<button type="button" onclick="alert('Hello world!')">Click Me!</button>
  
</body>
</html>

 

 

When I try to select the car, all options show for a split second and I can't pick any other option. 

 

The code works fine on Windows. The HTML page on its own renders and functions as expected on Windows and Mac in all major browsers - Just not in palette of Fusion 360 on Mac.

 

I am looking for suggestions how to resolve this. 

4 REPLIES 4
Message 2 of 5
JeromeBriot
in reply to: Anonymous

Hello,

 

To fix this issue, set useNewWebBrowser to True in the palettes.add method:

 

palette = palettes->add("myPalette", "My Palette", "palette.html", true, true, true, 300, 200, true);

 

 

Message 3 of 5
goyals
in reply to: Anonymous

Hi,

 

I opened the web page you shared in palette and it works fine for me. I use old browser while creating palette control. Please take a look at the video attached. Thanks.

 

Regards,

Shyam Goyal



Shyam Goyal
Sr. Software Dev. Manager
Message 4 of 5
JeromeBriot
in reply to: goyals

Message 5 of 5
Anonymous
in reply to: JeromeBriot

Thanks for the video. I was getting the same behavior and I was able to get it to work by passing optional 'true' (for enabling use of new browser engine) parameter to _palette->add() function. 

 

I hope it saves someone else's time. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report