Re: Problem with Manual Layout in Test App


Dave
 

Hi,

I’ve added logging to the resizeWithOldSuperviewSize: method (see below). Notice that LTWWindowTrackerView:: resizeWithOldSuperviewSize is never called, not sure why, but if I remove the auto-resize mask from it, it calls it, still doesn’t work though.



The first logging Group is the window at its big size, I then quickly resize it to the window Minumum and last Group shows the rectangles as being ok, however on the screen it looks like the attached image.



Cheers
Dave

—————————————————————————————

Window at Big Size:

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {1811, 1018}}  Frame {{20, 20}, {1771, 978}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {1851, 1058}}  Frame {{20, 20}, {1811, 1018}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {1851, 1058}}  Frame {{0, 0}, {1851, 1058}}

----------------------------------------------------------

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {1788, 1018}}  Frame {{20, 20}, {1748, 978}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {1828, 1058}}  Frame {{20, 20}, {1788, 1018}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {1828, 1058}}  Frame {{0, 0}, {1828, 1058}}

----------------------------------------------------------

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {1743, 980}}  Frame {{20, 20}, {1703, 940}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {1783, 1020}}  Frame {{20, 20}, {1743, 980}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {1783, 1020}}  Frame {{0, 0}, {1783, 1020}}

----------------------------------------------------------

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {1618, 925}}  Frame {{20, 20}, {1578, 885}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {1658, 965}}  Frame {{20, 20}, {1618, 925}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {1658, 965}}  Frame {{0, 0}, {1658, 965}}

----------------------------------------------------------

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {1405, 819}}  Frame {{20, 20}, {1365, 779}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {1445, 859}}  Frame {{20, 20}, {1405, 819}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {1445, 859}}  Frame {{0, 0}, {1445, 859}}

----------------------------------------------------------

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {1159, 691}}  Frame {{20, 20}, {1119, 651}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {1199, 731}}  Frame {{20, 20}, {1159, 691}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {1199, 731}}  Frame {{0, 0}, {1199, 731}}

----------------------------------------------------------

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {187, 136}}  Frame {{20, 20}, {147, 96}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {227, 176}}  Frame {{20, 20}, {187, 136}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {227, 176}}  Frame {{0, 0}, {227, 176}}

—————————————————————————————
Window at Smallest Size:

LTWSimpleBlueView: Superview Bounds: {{0, 0}, {60, 60}}  Frame {{20, 20}, {20, 20}}
LTWSimpleGreenView: Superview Bounds: {{0, 0}, {100, 100}}  Frame {{20, 20}, {60, 60}}
LTWSimpleBaseView: Superview Bounds: {{0, 0}, {100, 100}}  Frame {{0, 0}, {100, 100}}





Join {cocoa@apple-dev.groups.io to automatically receive all group messages.