www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xregcurtainfxlayout/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');

for n=1:length(h);
   set(h{n},'Position',pos);
end