Author: qmathe
Date: Mon Jul 13 10:43:40 2009
New Revision: 4914

URL: http://svn.gna.org/viewcvs/etoile?rev=4914&view=rev
Log:
Fixed incorrect autoresizing of the content view in a supervisor view. 
The problem was caused by not updating the content frame size to match the 
supervisor view frame size, when the content view is inserted. 

Written several tests to check the sizing of the content view.

Until now, this bug was invisible because -[ETLayoutItemGroup setLayoutView:] 
was making the adjustment by itself, and -[ETLayoutItem setView:] was updating 
newView frame by itself to match the item (and supervisor view) frame.

This issue was revealed by moving layout view insertion from 
-renderLayoutItems:isNewContent: to -[ETLayout setUp].  -setUp is called by 
-[ETLayoutItemGroup setLayout:] and at this point any scroll decorator in use 
is not yet removed, that's why the layout item frame set on the layout view in 
-setLayoutView: was then not matching the supervisor view frame but the 
decorator 
frame.

Modified:
    trunk/Etoile/Frameworks/EtoileUI/Source/ETLayoutItemGroup.m
    trunk/Etoile/Frameworks/EtoileUI/Source/ETView.m
    trunk/Etoile/Frameworks/EtoileUI/Tests/test_ETView.m


_______________________________________________
Etoile-cvs mailing list
Etoile-cvs@gna.org
https://mail.gna.org/listinfo/etoile-cvs

Reply via email to