summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueInfoViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBQueueInfoViewController.m')
-rw-r--r--macosx/HBQueueInfoViewController.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/macosx/HBQueueInfoViewController.m b/macosx/HBQueueInfoViewController.m
index 583eb3cfc..83659c2c5 100644
--- a/macosx/HBQueueInfoViewController.m
+++ b/macosx/HBQueueInfoViewController.m
@@ -13,6 +13,7 @@
@property (nonatomic, weak) IBOutlet NSTextField *statisticsLabel;
@property (nonatomic, weak) IBOutlet NSTextField *summaryLabel;
@property (nonatomic, weak) IBOutlet NSScrollView *scrollView;
+@property (nonatomic, weak) IBOutlet NSBox *divider;
@property (nonatomic, weak) id<HBQueueDetailsViewControllerDelegate> delegate;
@@ -106,6 +107,12 @@
}
}
+- (void)viewDidLayout
+{
+ [super viewDidLayout];
+ self.divider.hidden = self.scrollView.frame.size.height > self.scrollView.contentView.documentView.frame.size.height;
+}
+
- (void)setItem:(HBQueueItem *)item
{
_item = item;