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

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

Anonymous
Not applicable
1,309 Views
4 Replies
Message 1 of 5

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

Anonymous
Not applicable

@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. 

0 Likes
Accepted solutions (2)
1,310 Views
4 Replies
Replies (4)
Message 2 of 5

JeromeBriot
Mentor
Mentor
Accepted solution

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
Autodesk
Autodesk

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
0 Likes
Message 4 of 5

JeromeBriot
Mentor
Mentor
Message 5 of 5

Anonymous
Not applicable
Accepted solution

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. 

0 Likes