indragiek / INAppStoreWindow

NSWindow subclass with a highly customizable title bar and traffic lights
BSD 2-Clause "Simplified" License
1.06k stars 162 forks source link

window frame.height grows from start to start if autosave name is not empty, OS X 10.9.3 #182

Open Sega-Zero opened 10 years ago

Sega-Zero commented 10 years ago

Updated to the last release and have noticed a terrible bug: if the window has autosave name set, the window's height grows in every launch! The height becomes wrong after [NSWindow _setFrameFromString:overrideTopLeft:preferActiveDisplay:constrainFullFrame:force:] then _contentViewFrame returns wrong height

the stack:

#0  0x0000000100012e37 in -[INAppStoreWindow _contentViewFrame] 
#1  0x000000010000cb80 in -[INAppStoreWindowContentView setFrameSize:] 
#2  0x00007fff953c7dee in -[NSWindow _oldPlaceWindow:] ()
#3  0x00007fff953c6e3c in -[NSWindow _setFrameCommon:display:stashSize:] ()
#4  0x000000010000f6b1 in -[INAppStoreWindow setFrame:display:] 
#5  0x00007fff953db915 in -[NSWindow _setFrameFromString:overrideTopLeft:preferActiveDisplay:constrainFullFrame:force:] ()