Skip to content

Instantly share code, notes, and snippets.

@weiweihuanghuang
Last active March 12, 2017 21:49
Show Gist options
  • Save weiweihuanghuang/4e2c948e1ddc132bbacf to your computer and use it in GitHub Desktop.
Save weiweihuanghuang/4e2c948e1ddc132bbacf to your computer and use it in GitHub Desktop.
Set Preview Panel Height Across Every Tab
#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