Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f0fb30e7
Kaydet (Commit)
f0fb30e7
authored
Eki 28, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of some crack
Change-Id: I9806eb87e8d679c3b37de9cf7b87e26c3d4b5387
üst
c7550951
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
13 deletions
+3
-13
AppDelegate.m
ios/experimental/LibreOffice/LibreOffice/AppDelegate.m
+2
-5
View.h
ios/experimental/LibreOffice/LibreOffice/View.h
+0
-1
View.m
ios/experimental/LibreOffice/LibreOffice/View.m
+1
-7
No files found.
ios/experimental/LibreOffice/LibreOffice/AppDelegate.m
Dosyayı görüntüle @
f0fb30e7
...
...
@@ -51,9 +51,6 @@ static BOOL keyboardShows;
vc
.
view
=
self
.
view
;
theView
=
self
.
view
;
// This is baaad
theView
->
applicationFrame
=
applicationFrame
;
self
.
view
->
textView
=
[[
UITextView
alloc
]
initWithFrame
:
r
];
self
.
view
->
textView
.
autocapitalizationType
=
UITextAutocapitalizationTypeNone
;
self
.
view
->
textView
.
alpha
=
0
;
...
...
@@ -71,9 +68,9 @@ static BOOL keyboardShows;
NSLog
(
@"statusBarOrientation: %ld"
,
(
long
)
[[
UIApplication
sharedApplication
]
statusBarOrientation
]);
if
(
UIInterfaceOrientationIsLandscape
([[
UIApplication
sharedApplication
]
statusBarOrientation
]))
touch_lo_set_view_size
(
applicationFrame
.
size
.
height
,
applicationFrame
.
size
.
width
);
touch_lo_set_view_size
(
r
.
size
.
height
,
r
.
size
.
width
);
else
touch_lo_set_view_size
(
applicationFrame
.
size
.
width
,
applicationFrame
.
size
.
height
);
touch_lo_set_view_size
(
r
.
size
.
width
,
r
.
size
.
height
);
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
keyboardWillShow
:
)
name
:
UIKeyboardWillShowNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
keyboardDidHide
:
)
name
:
UIKeyboardDidHideNotification
object
:
nil
];
...
...
ios/experimental/LibreOffice/LibreOffice/View.h
Dosyayı görüntüle @
f0fb30e7
...
...
@@ -15,7 +15,6 @@
{
@public
UITextView
*
textView
;
CGRect
applicationFrame
;
}
-
(
void
)
drawRect
:
(
CGRect
)
rect
;
-
(
void
)
tapGesture
:(
UITapGestureRecognizer
*
)
gestureRecognizer
;
...
...
ios/experimental/LibreOffice/LibreOffice/View.m
Dosyayı görüntüle @
f0fb30e7
...
...
@@ -128,13 +128,7 @@
switch
([[
UIApplication
sharedApplication
]
statusBarOrientation
])
{
case
UIInterfaceOrientationPortrait
:
// No idea why I need to do this ugly subtraction of
// applicationFrame.origin.y here. The handling of View frame
// and applicationFrame has been a bit of a mystery to me.
// Anyway, unless a Right Way to do this is figured out,
// corresponding hacks are needed for the other orientations,
// too, obiously.
CGContextTranslateCTM
(
context
,
0
,
self
.
frame
.
size
.
height
-
applicationFrame
.
origin
.
y
);
CGContextTranslateCTM
(
context
,
0
,
self
.
frame
.
size
.
height
);
CGContextScaleCTM
(
context
,
1
,
-
1
);
break
;
case
UIInterfaceOrientationLandscapeLeft
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment