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: 

Palette is only resizable when showCloseButton is set to true

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
rolandas.vegis
554 Views, 7 Replies

Palette is only resizable when showCloseButton is set to true

Hello,

After a recent update (not sure exactly which one) palettes became resizable only when showCloseButton is set to true. So even if I set that palette is resizable it is not going to work if showCloseButton is false.

 

Information on when this is going to be fixed would be appreciated.

7 REPLIES 7
Message 2 of 8
goyals
in reply to: rolandas.vegis

I tried on latest code on Mac but not able to see the problem. The palette can be resized by pulling the right-bottom corner.

 

app = adsk.core.Application.get()

ui = app.userInterface

palettes = ui.palettes

palette = palettes.add('Test1','Test1','https://autodesk.com',True,True,True)



Shyam Goyal
Sr. Software Dev. Manager
Message 3 of 8
rolandas.vegis
in reply to: goyals

Yes in your example it works, because you have showCloseButton set to True. It does not work if showCloseButton is False.

 

I edited your example, try it again.

 

app = adsk.core.Application.get()

ui = app.userInterface

palettes = ui.palettes

palettes.add('Test1','Test1','https://autodesk.com',True,False,True)

Message 4 of 8
goyals
in reply to: rolandas.vegis

Mistakenly I pasted the wrong code. I tried even setting showCloseButton to False but still I was able to resize the window.



Shyam Goyal
Sr. Software Dev. Manager
Message 5 of 8
rolandas.vegis
in reply to: goyals

That's interesting. Maybe it is Windows specific issue then. I tried it on 3 PC (all Windows) and I can reproduce it 100% of the time. Could you try it on Windows?

Message 6 of 8
goyals
in reply to: rolandas.vegis

Yes it is a windows specific issue. I created ticket UP-42499 to investigate it further. Thanks for reporting it.



Shyam Goyal
Sr. Software Dev. Manager
Message 7 of 8
keqingsong
in reply to: goyals

Hey @rolandas.vegis  - happy to report that we got this issue fixed and will be rolling it out in the upcoming update. Thanks again for your help on spotting this bug! 


Keqing Song
Autodesk Fusion Community Manager
Portland, Oregon, USA

Become an Autodesk Fusion Insider



Message 8 of 8
rolandas.vegis
in reply to: keqingsong

Yes, I see that the problem is fixed, but the fix is not ideal.

The palettes now always have the bottom space which was reserved for the close button and since it changed the palette height, our palettes now have scrollbars in them. While fixing the scrollbars only requires a palette size change (and an add-in update for the users) it still looks a little weird with empty space at the bottom.

 

Capture.PNG

 

Would be nice if the empty space at the bottom could be removed.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report