But it is not messing with the layout assignments of existing children that were not previously in the layout. It is just triggered something like an adjustSize operation. Joe was referring to setting min/max constraints on your floating children. Normally you adding and removing layouts from a parent dynamically, which contains floating children not in a layout.
What is your goal here? How do you want your floating menu widget to behave? Is your goal to get it to stick to the top of the main widget, constraining its width to the parent width? On Sun, Jan 5, 2014 at 3:17 AM, Marcus Ottosson <[email protected]>wrote: > >>> The size of the parent widget is not necessarily determined by its >> children. It *can* be determined by its children if a layout is installed >> and there are no overruling size contraints being applied to the parent. If >> you make widgets children of another, without a layout, they are all >> allowed to overlap and be cropped off by the parent. It is only the layout >> engine that constantly observes the children to manage the size of the >> parent. >> > > Of course, you are right. I was referring to this example in particular. > > I would actually expect it not to mess with the layout assignments of >> existing children, when adding a layout. There are times when you want both >> layout constrained children, an floating positioned children. >> > > As would I, but if you run the code you'll see how it actually does. > > Still not sure exactly what is going on. > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/7b734a21-6b88-4f3c-ab1c-37e034038a84%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2aJCwAQ%3DbgONtxWT78zuZYG78eJZcCUzX4jSGCO9UPPQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
