Problem with shelfLayout vertical offset at the top

Problem with shelfLayout vertical offset at the top

seith43MSH
Explorer Explorer
404 Views
0 Replies
Message 1 of 1

Problem with shelfLayout vertical offset at the top

seith43MSH
Explorer
Explorer

Hi guys,

 

Just reporting an annoying bug in Maya 2020.3 on Windows 10: shelfLayout now introduces an erroneous vertical offset when its children's height is larger than 32 pixels.

 

In this example window you can see the introduced offset gradually getting taller. So it's clearly linked to the button size:

 

Screen Shot 12-01-20 at 11.44 AM.PNG

 

All other behaviours on the shelfLayout are normal. So if you get a grid of buttons they're all perfectly laid out except the lowest row of buttons is cropped out at the bottom by the same amount as the top vertical offset.

 

Could you guys please look into this?

 

Cheers!

Seith

 

(Here's the code to reproduce that window. Also note that the issue is the same if you use iconTextButtons instead of shelfButtons)

 

string $window = `window`;
string $shelfLayout = `shelfLayout`;
shelfButton -p $shelfLayout -style "iconAndTextVertical" -bgc .5 .5 .5
-image1 "blendShapeEditor.png" -w 32 -h 32 -sic -label "32*32";
shelfButton -p $shelfLayout -style "iconAndTextVertical" -bgc .5 .5 .5
-image1 "blendShapeEditor.png" -w 48 -h 48 -sic -label "48*48";
shelfButton -p $shelfLayout -style "iconAndTextVertical" -bgc .5 .5 .5
-image1 "blendShapeEditor.png" -w 64 -h 64 -sic -label "64*64";
shelfButton -p $shelfLayout -style "iconAndTextVertical" -bgc .5 .5 .5
-image1 "blendShapeEditor.png" -w 128 -h 128 -sic -label "128*128";
shelfButton -p $shelfLayout -style "iconAndTextVertical" -bgc .5 .5 .5
-image1 "blendShapeEditor.png" -w 64 -h 64 -sic -label "64*64";
shelfButton -p $shelfLayout -style "iconAndTextVertical" -bgc .5 .5 .5
-image1 "blendShapeEditor.png" -w 48 -h 48 -sic -label "48*48";
showWindow $window;

 

0 Likes
405 Views
0 Replies
Replies (0)