Mail: temporary workaround for the label placing issue.
* Does not work for all font sizes.
This commit is contained in:
@@ -145,6 +145,8 @@ LabelView::Draw(BRect updateRect)
|
|||||||
{
|
{
|
||||||
if (Text() != NULL) {
|
if (Text() != NULL) {
|
||||||
BRect rect = Bounds();
|
BRect rect = Bounds();
|
||||||
|
// TODO: solve this better (alignment of label and text)
|
||||||
|
rect.top++;
|
||||||
|
|
||||||
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||||
uint32 flags = 0;
|
uint32 flags = 0;
|
||||||
@@ -209,6 +211,8 @@ HeaderTextControl::Draw(BRect updateRect)
|
|||||||
if (Label() != NULL) {
|
if (Label() != NULL) {
|
||||||
rect = CreateLabelLayoutItem()->Frame().OffsetByCopy(-Frame().left,
|
rect = CreateLabelLayoutItem()->Frame().OffsetByCopy(-Frame().left,
|
||||||
-Frame().top);
|
-Frame().top);
|
||||||
|
// TODO: solve this better (alignment of label and text)
|
||||||
|
rect.top++;
|
||||||
|
|
||||||
alignment labelAlignment;
|
alignment labelAlignment;
|
||||||
GetAlignment(&labelAlignment, NULL);
|
GetAlignment(&labelAlignment, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user