diff options
| author | Vadim Shpakovski | 2012-09-19 01:50:15 +0300 | 
|---|---|---|
| committer | Vadim Shpakovski | 2012-09-19 01:50:15 +0300 | 
| commit | b1f90fa096dcaad2a2c27023b4865aba37331876 (patch) | |
| tree | 220c30d666790cf3566c6e402cceb8af0dc2f2b1 /MASShortcutView.m | |
| parent | 08717ff81efc9e868e0af7fdb8b6807508c6b0fb (diff) | |
| download | MASShortcut-b1f90fa096dcaad2a2c27023b4865aba37331876.tar.bz2 | |
Merge.
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; | 
