mmlr + stippi:

In my last row of changes I removed a call to ResizeToPreferred()
in SetLimitLabels(). It is confirmed that the BeOS implementation
is doing it and some applications rely on it, like our own Mouse preflet.
This closes #2526.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26479 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-07-18 00:06:28 +00:00
parent 36265c4de7
commit f779adc692
+9 -1
View File
@@ -587,6 +587,13 @@ BSlider::SetLimitLabels(const char *minLabel, const char *maxLabel)
fMaxLimitLabel = maxLabel ? strdup(maxLabel) : NULL;
InvalidateLayout();
// TODO: This is for backwards compatibility and should
// probably be removed when breaking binary compatiblity.
// Applications like our own Mouse rely on this behavior.
if ((Flags() & B_SUPPORTS_LAYOUT) == 0)
ResizeToPreferred();
Invalidate();
}
@@ -1398,7 +1405,8 @@ void
BSlider::SetHashMarks(hash_mark_location where)
{
fHashMarks = where;
InvalidateLayout();
// TODO: enable if the hashmark look is influencing the control size!
// InvalidateLayout();
Invalidate();
}