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,
|
BRadioButton::GetHeightForWidth(data->width, &data->min, &data->max,
|
||||||
&data->preferred);
|
&data->preferred);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
case PERFORM_CODE_SET_LAYOUT:
|
case PERFORM_CODE_SET_LAYOUT:
|
||||||
{
|
{
|
||||||
perform_data_set_layout* data = (perform_data_set_layout*)_data;
|
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,
|
BScrollBar::GetHeightForWidth(data->width, &data->min, &data->max,
|
||||||
&data->preferred);
|
&data->preferred);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
case PERFORM_CODE_SET_LAYOUT:
|
case PERFORM_CODE_SET_LAYOUT:
|
||||||
{
|
{
|
||||||
perform_data_set_layout* data = (perform_data_set_layout*)_data;
|
perform_data_set_layout* data = (perform_data_set_layout*)_data;
|
||||||
|
|||||||
@@ -474,9 +474,9 @@ BStatusBar::SetBarHeight(float barHeight)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// resize so that the height fits
|
// resize so that the height fits
|
||||||
if ((Flags() & B_SUPPORTS_LAYOUT) != 0) {
|
if ((Flags() & B_SUPPORTS_LAYOUT) != 0)
|
||||||
InvalidateLayout();
|
InvalidateLayout();
|
||||||
} else {
|
else {
|
||||||
float width, height;
|
float width, height;
|
||||||
GetPreferredSize(&width, &height);
|
GetPreferredSize(&width, &height);
|
||||||
ResizeTo(Bounds().Width(), height);
|
ResizeTo(Bounds().Width(), height);
|
||||||
|
|||||||
Reference in New Issue
Block a user