diff --git a/INAppStoreWindow/INAppStoreWindow.m b/INAppStoreWindow/INAppStoreWindow.m index 6d5c3a7..6f5184f 100755 --- a/INAppStoreWindow/INAppStoreWindow.m +++ b/INAppStoreWindow/INAppStoreWindow.m @@ -1130,7 +1130,11 @@ - (void)_layoutTrafficLightsAndContent CGFloat buttonOrigin = 0.0; if (!self.verticalTrafficLightButtons) { if (self.centerTrafficLightButtons) { - buttonOrigin = round(NSMidY(titleBarFrame) - INMidHeight(closeFrame)); + if (INRunningYosemite() && self.styleMask & NSFullScreenWindowMask) { + buttonOrigin = round(self._minimumTitlebarHeight * 0.5 - INMidHeight(closeFrame)); + } else { + buttonOrigin = round(NSMidY(titleBarFrame) - INMidHeight(closeFrame)); + } } else { buttonOrigin = NSMaxY(titleBarFrame) - NSHeight(closeFrame) - self.trafficLightButtonsTopMargin; }