From b1f90fa096dcaad2a2c27023b4865aba37331876 Mon Sep 17 00:00:00 2001 From: Vadim Shpakovski Date: Wed, 19 Sep 2012 01:50:15 +0300 Subject: Merge. --- MASShortcutView.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MASShortcutView.m b/MASShortcutView.m index 47254fe..27e6ae7 100644 --- a/MASShortcutView.m +++ b/MASShortcutView.m @@ -204,8 +204,10 @@ { CGRect shortcutRect, hintRect; CGFloat hintButtonWidth = HINT_BUTTON_WIDTH; - if (self.appearance == MASShortcutViewAppearanceTexturedRect) { - hintButtonWidth += 2.0; + switch (self.appearance) { + case MASShortcutViewAppearanceTexturedRect: hintButtonWidth += 2.0; break; + case MASShortcutViewAppearanceRounded: hintButtonWidth += 3.0; break; + default: break; } CGRectDivide(self.bounds, &hintRect, &shortcutRect, hintButtonWidth, CGRectMaxXEdge); if (shortcutRectRef) *shortcutRectRef = shortcutRect; -- cgit v1.2.3