diff options
Diffstat (limited to 'MASShortcutView.m')
| -rw-r--r-- | MASShortcutView.m | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/MASShortcutView.m b/MASShortcutView.m index a454ce1..4bfae8e 100644 --- a/MASShortcutView.m +++ b/MASShortcutView.m @@ -195,7 +195,11 @@  - (void)getShortcutRect:(CGRect *)shortcutRectRef hintRect:(CGRect *)hintRectRef  {      CGRect shortcutRect, hintRect; -    CGRectDivide(self.bounds, &hintRect, &shortcutRect, HINT_BUTTON_WIDTH, CGRectMaxXEdge); +    CGFloat hintButtonWidth = HINT_BUTTON_WIDTH; +    if (self.appearance == MASShortcutViewAppearanceTexturedRect) { +        hintButtonWidth += 2.0; +    } +    CGRectDivide(self.bounds, &hintRect, &shortcutRect, hintButtonWidth, CGRectMaxXEdge);      if (shortcutRectRef)  *shortcutRectRef = shortcutRect;      if (hintRectRef) *hintRectRef = hintRect;  } | 
