www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xreglayerlayout/repack.m
function repack(obj) % Synopsis % function repack(obj) % % obj is the packObject % % Description % This function reapplies the packing command to the objects in question % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. h = get(obj,'ELEMENTS'); pos=get(obj,'innerposition'); pos(3:4)=max(pos(3:4),[1 1]); for n=1:length(h); set(h{n},'Position',pos); end