aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Shpakovski2012-09-19 01:50:15 +0300
committerVadim Shpakovski2012-09-19 01:50:15 +0300
commitb1f90fa096dcaad2a2c27023b4865aba37331876 (patch)
tree220c30d666790cf3566c6e402cceb8af0dc2f2b1
parent08717ff81efc9e868e0af7fdb8b6807508c6b0fb (diff)
downloadMASShortcut-b1f90fa096dcaad2a2c27023b4865aba37331876.tar.bz2
Merge.
-rw-r--r--MASShortcutView.m6
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;