diff options
Diffstat (limited to 'MASShortcutView.m')
| -rw-r--r-- | MASShortcutView.m | 6 | 
1 files 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; | 
