Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Resolved issue with HUD panel not being appropriately sized after cer…
…tain combinations of subtitles
  • Loading branch information
Ben Einstein committed Feb 25, 2011
1 parent 66b1cd3 commit 2cb98f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MBProgressHUD.m
Expand Up @@ -368,10 +368,10 @@ - (void)layoutSubviews {
label.text = self.labelText;

// Update HUD size
if (self.width < (lWidth + 2 * MARGIN)) {
if (self.width < (lWidth + 2 * MARGIN))
self.width = lWidth + 2 * MARGIN;
}
self.height = self.height + lHeight + PADDING;

self.height = self.height + lHeight + PADDING;

// Move indicator to make room for the label
indFrame.origin.y -= (floor(lHeight / 2 + PADDING / 2));
Expand Down Expand Up @@ -415,9 +415,9 @@ - (void)layoutSubviews {
detailsLabel.text = self.detailsLabelText;

// Update HUD size
if (self.width < lWidth) {
if (self.width < lWidth + 2 * MARGIN)
self.width = lWidth + 2 * MARGIN;
}

self.height = self.height + lHeight + PADDING;

// Move indicator to make room for the new label
Expand Down

0 comments on commit 2cb98f4

Please sign in to comment.