You can use a formLayout instead of a columnLayout and it will attached
better.
Simple standalone example with a window:
win = cmds.window(w=400, h=600)
tab = cmds.tabLayout()
panelLayout = cmds.formLayout("Outliner")
panel = cmds.outlinerPanel()
cmds.formLayout(panelLayout, e=True,
attachForm=[
(panel, "top", 0),
(panel, "left", 0),
(panel, "bottom", 0),
(panel, "right", 0)
])
cmds.showWindow(win)
On Wednesday, December 5, 2012 12:12:36 AM UTC-8, san wrote:
>
>
> <https://lh4.googleusercontent.com/-aNTaeYOvYFM/UL8Bz1RBqqI/AAAAAAAADeI/YDqyeIeu_Bk/s1600/theproblemo.PNG>
>
>
> On Wednesday, December 5, 2012 1:41:11 PM UTC+5:30, san wrote:
>>
>>
>> Well,i need to update my maya project manager and told by user to add
>> outliner inside of it as a tab so if user opens the scene from project
>> Manager the tab switches to the next outliner tab, i have managed to put
>> outliner inside of tab but it doesnt seem to show up full height(see image
>> above)
>> The tabLayout that contains all tabs:
>>
>>
>> self.widgets["tabLayout"]=cmds.tabLayout('tabLayout',innerMarginWidth=0,scr=True,h=300,cr=True,innerMarginHeight=0)
>>
>> #outliner tab
>>
>> self.widgets["outlinerLayout"]=cmds.columnLayout("outlinerLayout",
>> adj=True, parent="tabLayout")
>> if not cmds.window("outlinerPanel1Window", q=True,
>> exists=True):
>> cmds.OutlinerWindow()
>> mel.eval('control -e -p
>> '+self.widgets["outlinerLayout"]+' outlinerPanel1Window;')
>>
>> I do not know what am I missing,
>> by the combination of cr=True & adj =True, it shows full width of
>> specified for dockControl, I have tried to specifying the height of
>> columnLayout but still it shows up like this
>>
>>
>>
>>
>>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe