Decided to set the frame before calling baselineOffsetFromBottom in xsizing_darwin.m, just to be safe.

This commit is contained in:
Pietro Gagliardi 2014-08-06 11:03:42 -04:00
parent e1c3a9fe26
commit c4e95a0bbf
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ struct xalignment alignmentInfo(id c, struct xrect newrect)
a.rect.y = (intptr_t) r.origin.y; a.rect.y = (intptr_t) r.origin.y;
a.rect.width = (intptr_t) r.size.width; a.rect.width = (intptr_t) r.size.width;
a.rect.height = (intptr_t) r.size.height; a.rect.height = (intptr_t) r.size.height;
// TODO set frame first? // I'm not sure if we need to set the frame for -[NSView baselineOffsetFromBottom], but let's do it just to be safe
// TODO Areas
[v setFrame:r];
a.baseline = (intptr_t) [v baselineOffsetFromBottom]; a.baseline = (intptr_t) [v baselineOffsetFromBottom];
return a; return a;
} }