Problem with shelfLayout vertical offset at the top
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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;