Last active
March 12, 2017 21:49
-
-
Save weiweihuanghuang/4e2c948e1ddc132bbacf to your computer and use it in GitHub Desktop.
Set Preview Panel Height Across Every Tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MenuTitle: Set Preview Panel | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Set preview panel height across every tab to the same as this tab | |
""" | |
import GlyphsApp | |
Font = Glyphs.font | |
frameHeight = Font.currentTab.previewView().frame().size.height | |
for eachTab in Font.tabs: | |
splitView = eachTab.previewSplitView() | |
Frame = splitView.frame() | |
print splitView.setPosition_ofDividerAtIndex_(Frame.size.height - frameHeight - 1, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment