boherna / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

GTMWindowSheetController doesn't support top level parent view #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use GTMWindowSheetController to show a sheet.
2. For modalForView: use a top level view (for example, [[window contentView] 
superview]).

What is the expected output? What do you see instead?
Expect to see a sheet centered on the parent view.
Instead the view is at 0,0.

The problem is in -[GTMWindowSheetController screenFrameOfView:]. Attached a 
fix.

Original issue reported on code.google.com by sail@chromium.org on 14 Sep 2012 at 9:55

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by thoma...@gmail.com on 17 Sep 2012 at 9:44