I left in some code I used for testing. Silly me.
This commit is contained in:
parent
3e45eaf595
commit
d442d0579f
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
#define TORRENT_TABLE_VIEW_DATA_TYPE @"TorrentTableViewDataType"
|
#define TORRENT_TABLE_VIEW_DATA_TYPE @"TorrentTableViewDataType"
|
||||||
|
|
||||||
#define ROW_HEIGHT_REGULAR 165.0
|
#define ROW_HEIGHT_REGULAR 65.0
|
||||||
#define ROW_HEIGHT_SMALL 40.0
|
#define ROW_HEIGHT_SMALL 40.0
|
||||||
#define WINDOW_REGULAR_WIDTH 468.0
|
#define WINDOW_REGULAR_WIDTH 468.0
|
||||||
|
|
||||||
|
@ -2127,13 +2127,12 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
float newHeight = frame.size.height - [fScrollView frame].size.height
|
float newHeight = frame.size.height - [fScrollView frame].size.height
|
||||||
+ [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
|
+ [fFilteredTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height);
|
||||||
|
|
||||||
float minHeight = [fWindow minSize].height;
|
float minHeight, maxHeight;
|
||||||
if (newHeight < minHeight)
|
if (newHeight < (minHeight = [fWindow minSize].height))
|
||||||
newHeight = minHeight;
|
newHeight = minHeight;
|
||||||
|
else if (newHeight > (maxHeight = [[fWindow screen] visibleFrame].size.height))
|
||||||
float maxHeight = [[fWindow screen] visibleFrame].size.height;
|
|
||||||
if (newHeight > maxHeight)
|
|
||||||
newHeight = maxHeight;
|
newHeight = maxHeight;
|
||||||
|
else;
|
||||||
|
|
||||||
frame.origin.y -= (newHeight - frame.size.height);
|
frame.origin.y -= (newHeight - frame.size.height);
|
||||||
frame.size.height = newHeight;
|
frame.size.height = newHeight;
|
||||||
|
|
Loading…
Reference in New Issue