Mail: temporary workaround for the label placing issue.

* Does not work for all font sizes.
This commit is contained in:
Axel Dörfler
2015-09-04 17:33:27 +02:00
parent 4182c53bc4
commit 62c1b01661
+4
View File
@@ -145,6 +145,8 @@ LabelView::Draw(BRect updateRect)
{
if (Text() != NULL) {
BRect rect = Bounds();
// TODO: solve this better (alignment of label and text)
rect.top++;
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
uint32 flags = 0;
@@ -209,6 +211,8 @@ HeaderTextControl::Draw(BRect updateRect)
if (Label() != NULL) {
rect = CreateLabelLayoutItem()->Frame().OffsetByCopy(-Frame().left,
-Frame().top);
// TODO: solve this better (alignment of label and text)
rect.top++;
alignment labelAlignment;
GetAlignment(&labelAlignment, NULL);