Small coding style fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36216 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -534,7 +534,7 @@ BRadioButton::Perform(perform_code code, void* _data)
|
||||
BRadioButton::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;
|
||||
|
||||
@@ -1275,7 +1275,7 @@ BScrollBar::Perform(perform_code code, void* _data)
|
||||
BScrollBar::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;
|
||||
|
||||
@@ -474,9 +474,9 @@ BStatusBar::SetBarHeight(float barHeight)
|
||||
return;
|
||||
|
||||
// resize so that the height fits
|
||||
if ((Flags() & B_SUPPORTS_LAYOUT) != 0) {
|
||||
if ((Flags() & B_SUPPORTS_LAYOUT) != 0)
|
||||
InvalidateLayout();
|
||||
} else {
|
||||
else {
|
||||
float width, height;
|
||||
GetPreferredSize(&width, &height);
|
||||
ResizeTo(Bounds().Width(), height);
|
||||
|
||||
Reference in New Issue
Block a user