Skip to content

Commit 7fb2f68

Browse files
committed
Zoom-to-fit on launch from built-in file + updated to-do
1 parent 79eb752 commit 7fb2f68

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

EAGLEView/ViewController.m

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ - (void)viewDidLoad
5959
[self.fileView setRelativeZoomFactor:0.1];
6060
self.fileView.file = _eagleFile;
6161

62+
dispatch_after( dispatch_time( DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC ), dispatch_get_main_queue(), ^{
63+
[self zoomToFitAction:nil];
64+
});
65+
6266
// For iPhone: add gesture recognizer to enter/leave fullscreen mode
6367
// iPhone or iPad?
6468
if( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone )

To-do.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ To-do:
1616
- Search: deselect all marked components
1717
- Fix text drawing of R270 rotated instances
1818
- Fix bounding rect of R270 rotated instances
19-
- Fix too long texts in detail popup view controller
19+
- Fix zoom-to-fit after loading new file
20+
2021

2122
------------------------
2223
In progress/partly done:
@@ -28,6 +29,7 @@ In progress/partly done:
2829
-----
2930
Done:
3031

32+
√ Fix too long texts in detail popup view controller
3133
√ Update Dropbox API?
3234
√ Add "Unlink" to Dropbox to sign in as a different user
3335
√ Fix content height in Dropbox picker view controller

0 commit comments

Comments
 (0)