bonefish+stippi:

All views which cache layout information need to call ResetLayoutInvalidation()
when they have updated the cached information. Otherwise calling
InvalidateLayout() once they are already attached to a layout may not have any
effect.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36217 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-04-13 13:36:49 +00:00
parent 26fe41417d
commit c944d11f7e
8 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -1095,7 +1095,7 @@ BTextView::Perform(perform_code code, void* _data)
BTextView::GetHeightForWidth(data->width, &data->min, &data->max,
&data->preferred);
return B_OK;
}
}
case PERFORM_CODE_SET_LAYOUT:
{
perform_data_set_layout* data = (perform_data_set_layout*)_data;
@@ -2823,6 +2823,7 @@ BTextView::_ValidateLayoutData()
}
fLayoutData->valid = true;
ResetLayoutInvalidation();
TRACE("width: %.2f, height: %.2f\n", min.width, min.height);
}