css grid in palettes

css grid in palettes

VismantasKizelis
Enthusiast Enthusiast
701 Views
3 Replies
Message 1 of 4

css grid in palettes

VismantasKizelis
Enthusiast
Enthusiast

Hello

With the latest Fusion 360 our palettes collapsed, because css -rid (display:grid) is not supported in new web browser palettes. We hope that it is just a temporary flaw.

Btw: what engine Fusion 360 is using to render the html in palettes?

0 Likes
702 Views
3 Replies
Replies (3)
Message 2 of 4

akonovalenko
Contributor
Contributor

To check Fusion palette engine you can easily navigate your custom palette to the online checkers like 
'http://www.browser-info.net' 'https://html5test.com/' 'https://ruanyf.github.io/es-checker/' 


here are results of my test on Windows version of Fusion 360
Screenshot_19.pngScreenshot_20.pngScreenshot_22.png
Please pay attention that for MAC environment the results will be different.

0 Likes
Message 3 of 4

VismantasKizelis
Enthusiast
Enthusiast

Hello akonovalenko

 

Fusion 360 api used chrome to render the palettes, but soon it will not be supported. I suppose you were not using the new web browser. Take a look at the palettes()->add() function declaration:

/// Creates a new Palette.
/// id : The unique id for this palette. The id must be unique with respect to all of the palettes.
/// name : The displayed name of this palette. This is the name visible in the user interface.
/// htmlFileURL : Specifies the url to the HTML file that will be displayed in the pallete. This can be a local file or on the web.
/// isVisible : Specifies if the palette is initially visible or not. It's useful to create it invisisibly, change other desired
/// properties and then use the isVisible property to finally make it visible to the user.
/// showCloseButton : Specifies if a "Close" button should be displayed on the palette to allow the user to easily close it.
/// isResizable : Specifies if the palette can be resized by the user or not.
/// width : Specifies the width of the palette in pixels. If no width is specified a default width will be used.
/// height : Specifies the height of the palette in pixels. If no height is specified a default height will be used.
/// useNewWebBrowser : Specifies true to use new browser in the palette. This is false by default to support existing clients.
/// Support for old browser is deprecated and will be taken out soon.
/// Returns the newly created palette or null in the case the creation failed.
Ptr add(const std::string& id, const std::string& name, const std::string& htmlFileURL, bool isVisible, bool showCloseButton, bool isResizable, int width = 200, int height = 200, bool useNewWebBrowser = false);

 

I got same results as yours at browser-info.net when useNewWebBrowser == false, but the browser is not identified when useNewWebBrowser == true

Annotation 2019-08-25 092543.png

Annotation 2019-08-25 092553.png

 

0 Likes
Message 4 of 4

goyals
Autodesk
Autodesk

We are using QtWebBrowser as new web browser for palette. Previously we were using Chromium on Windows and Mac OSX WebKit on Mac. Let us know If you notice any issue while using new browser. Thanks.



Shyam Goyal
Sr. Software Dev. Manager