Palette is only resizable when showCloseButton is set to true

rolandas_vegis
Advocate

Palette is only resizable when showCloseButton is set to true

rolandas_vegis
Advocate
Advocate

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.

0 Likes
Reply
Accepted solutions (1)
798 Views
7 Replies
Replies (7)

goyals
Autodesk
Autodesk

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
0 Likes

rolandas_vegis
Advocate
Advocate

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)

0 Likes

goyals
Autodesk
Autodesk

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
0 Likes

rolandas_vegis
Advocate
Advocate

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?

0 Likes

goyals
Autodesk
Autodesk
Accepted solution

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
0 Likes

keqingsong
Community Manager
Community Manager

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



0 Likes

rolandas_vegis
Advocate
Advocate

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.

0 Likes