Removed areaPrefSize() from the Mac OS X backend; we now store the Area's size separately and return that for the preferred size instead.
This commit is contained in:
parent
d307848c8c
commit
e1c3a9fe26
|
@ -85,7 +85,6 @@ struct xalignment {
|
||||||
};
|
};
|
||||||
extern struct xsize controlPrefSize(id);
|
extern struct xsize controlPrefSize(id);
|
||||||
extern struct xsize tabPrefSize(id);
|
extern struct xsize tabPrefSize(id);
|
||||||
extern struct xsize areaPrefSize(id);
|
|
||||||
extern struct xalignment alignmentInfo(id, struct xrect);
|
extern struct xalignment alignmentInfo(id, struct xrect);
|
||||||
extern struct xrect frame(id);
|
extern struct xrect frame(id);
|
||||||
|
|
||||||
|
|
|
@ -38,23 +38,6 @@ struct xsize tabPrefSize(id control)
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO use this, possibly update to not need scrollview
|
|
||||||
/*
|
|
||||||
struct xsize areaPrefSize(id scrollview)
|
|
||||||
{
|
|
||||||
NSView *c;
|
|
||||||
NSRect r;
|
|
||||||
struct xsize s;
|
|
||||||
|
|
||||||
c = areaInScrollView(toNSScrollView(scrollview));
|
|
||||||
// don't size to fit; the frame size is already the size we want
|
|
||||||
r = [c frame];
|
|
||||||
s.width = (intptr_t) r.size.width;
|
|
||||||
s.height = (intptr_t) r.size.height;
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
struct xalignment alignmentInfo(id c, struct xrect newrect)
|
struct xalignment alignmentInfo(id c, struct xrect newrect)
|
||||||
{
|
{
|
||||||
NSView *v;
|
NSView *v;
|
||||||
|
|
Loading…
Reference in New Issue